View Javadoc

1   package com.explosion.expfmodules.search;
2   
3   /* =============================================================================
4    *       
5    *     Copyright 2004 Stephen Cowx
6    *
7    *     Licensed under the Apache License, Version 2.0 (the "License");
8    *     you may not use this file except in compliance with the License.
9    *     You may obtain a copy of the License at
10   *
11   *     http://www.apache.org/licenses/LICENSE-2.0
12   *
13   *     Unless required by applicable law or agreed to in writing, software
14   *     distributed under the License is distributed on an "AS IS" BASIS,
15   *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   *     See the License for the specific language governing permissions and
17   *     limitations under the License.
18   * 
19   * =============================================================================
20   */
21  
22  /***
23   * @author Stephen Cowx
24   * Date created:@04-Feb-2003
25   */
26  public class SearchResult
27  {
28     private int lineNumber= 0;
29     private String fileName = null;
30     private String matchedLine = null;
31     	
32    /***
33     * Constructor for SearchResult.
34     */
35    public SearchResult(int lineNumber, String fileName, String matchedLine)
36    {
37      this.lineNumber = lineNumber;
38      this.fileName = fileName;
39      this.matchedLine = matchedLine;    
40    }
41  
42    /***
43     * Returns the fileName.
44     * @return String
45     */
46    public String getFileName()
47    {
48      return fileName;
49    }
50  
51    /***
52     * Returns the lineNumber.
53     * @return int
54     */
55    public int getLineNumber()
56    {
57      return lineNumber;
58    }
59  
60    /***
61     * Returns the matchedLine.
62     * @return String
63     */
64    public String getMatchedLine()
65    {
66      return matchedLine;
67    }
68  
69    /***
70     * Sets the fileName.
71     * @param fileName The fileName to set
72     */
73    public void setFileName(String fileName)
74    {
75      this.fileName = fileName;
76    }
77  
78    /***
79     * Sets the lineNumber.
80     * @param lineNumber The lineNumber to set
81     */
82    public void setLineNumber(int lineNumber)
83    {
84      this.lineNumber = lineNumber;
85    }
86  
87    /***
88     * Sets the matchedLine.
89     * @param matchedLine The matchedLine to set
90     */
91    public void setMatchedLine(String matchedLine)
92    {
93      this.matchedLine = matchedLine;
94    }
95  
96  }