1 package com.explosion.expfmodules.search;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 }