1 package com.atlassian.sal.core.search;
2
3 import com.atlassian.sal.api.search.SearchMatch;
4 import com.atlassian.sal.api.search.ResourceType;
5
6
7
8
9 public class BasicSearchMatch implements SearchMatch
10 {
11 private String url;
12 private String title;
13 private String excerpt;
14 private ResourceType resourceType;
15
16 public BasicSearchMatch(String url, String title, String excerpt, ResourceType resourceType)
17 {
18 this.url = url;
19 this.title = title;
20 this.excerpt = excerpt;
21 this.resourceType = resourceType;
22 }
23
24 public String getUrl()
25 {
26 return url;
27 }
28
29 public String getTitle()
30 {
31 return title;
32 }
33
34 public String getExcerpt()
35 {
36 return excerpt;
37 }
38
39 public ResourceType getResourceType()
40 {
41 return resourceType;
42 }
43
44 }