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  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  }