1 | public class SearchRequest implements ISearchRequest {↵ | | 1 | public class SearchResult implements ISearchResult {↵
|
|
2 | private String criteria;↵ | | 2 | private String title;↵
|
|
3 | private String provider;↵ | | 3 | private String ↵
|
4 | private String searchTerm↵ | | 4 | description;↵
|
|
5 | ;↵ | | 5 | private URI location;↵
|
6 | ↵ | | |
|
7 | public SearchRequest(String criteria, String provider, String searchTerm) {↵ | | 6 | public SearchResult(String title, String description, URI location) {↵
|
8 | this.criteria = criteria;↵ | | 7 | this.title = title;↵
|
9 | this.provider = provider;↵ | | 8 | this.↵
|
10 | this.searchTerm = searchTerm;↵ | | |
|
11 | ↵ | | |
|
12 | }↵ | | |
|
13 | ↵ | | 9 | description = description;↵
|
| | | 10 | this.location = location;↵
|
| | | 11 | }↵
|
|
| | | 12 | /* (non-Javadoc)↵
|
| | | 13 | * @see org.columba.core.search.api.ISearchResult#getTitle()↵
|
| | | 14 | */↵
|
14 | public String getCriteria() {↵ | | 15 | public String getTitle() {↵
|
15 | return criteria;↵ | | 16 | return ↵
|
16 | }↵ | | |
|
| | | 17 | title;↵
|
| | | 18 | }↵
|
|
| | | 19 | /* (non-Javadoc)↵
|
| | | 20 | * @see org.columba.core.search.api.ISearchResult#getDescription()↵
|
| | | 21 | */↵
|
17 | public String getProvider() {↵ | | 22 | public String getDescription() {↵
|
18 | return provider;↵ | | 23 | return ↵
|
19 | }↵ | | |
|
|
20 | public String getSearchTerm↵ | | 24 | description;↵
|
| | | 25 | }↵
|
|
| | | 26 | /* (non-Javadoc)↵
|
| | | 27 | * @see org.columba.core.search.api.ISearchResult#getLocation()↵
|
| | | 28 | */↵
|
21 | () {↵ | | 29 | public URI getLocation() {↵
|
22 | return searchTerm | | 30 | return location
|