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