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 import java.util.Vector;
24
25 /***
26 * @author Stephen Cowx
27 * Date created:@04-Feb-2003
28 */
29 public class FileSearchResultCollection
30 {
31 private Vector searchResults = new Vector();
32 private String fileName;
33
34 /***
35 * Constructor for FileSearchResultCollection.
36 */
37 public FileSearchResultCollection(String fileName)
38 {
39 this.fileName = fileName;
40 }
41
42 /***
43 * Constructor for FileSearchResultCollection.
44 */
45 public FileSearchResultCollection()
46 {
47 }
48 /***
49 * Returns the fileName.
50 * @return String
51 */
52 public String getFileName()
53 {
54 return fileName;
55 }
56
57 /***
58 * Returns the searchResults.
59 * @return Vector
60 */
61 public Vector getSearchResults()
62 {
63 return searchResults;
64 }
65
66 /***
67 * Sets the fileName.
68 * @param fileName The fileName to set
69 */
70 public void setFileName(String fileName)
71 {
72 this.fileName = fileName;
73 }
74
75 /***
76 * Sets the searchResults.
77 * @param searchResults The searchResults to set
78 */
79 public void addResult(SearchResult searchResult)
80 {
81 this.searchResults.addElement(searchResult);
82 }
83
84 }