com.atlassian.sal.core.search
Class BasicSearchMatch

java.lang.Object
  extended by com.atlassian.sal.core.search.BasicSearchMatch
All Implemented Interfaces:
SearchMatch

public class BasicSearchMatch
extends Object
implements SearchMatch

Simplest implementation of a searchMatch.


Constructor Summary
BasicSearchMatch(String url, String title, String excerpt, ResourceType resourceType)
           
 
Method Summary
 String getExcerpt()
          An excerpt of the search match.
 ResourceType getResourceType()
          Contains more information about the source of this match.
 String getTitle()
          Title of the search match
 String getUrl()
          Absolute URL to reach this search match.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicSearchMatch

public BasicSearchMatch(String url,
                        String title,
                        String excerpt,
                        ResourceType resourceType)
Method Detail

getUrl

public String getUrl()
Description copied from interface: SearchMatch
Absolute URL to reach this search match.

Specified by:
getUrl in interface SearchMatch
Returns:
Absolute URL to reach this search match.

getTitle

public String getTitle()
Description copied from interface: SearchMatch
Title of the search match

Specified by:
getTitle in interface SearchMatch
Returns:
Title of the search match

getExcerpt

public String getExcerpt()
Description copied from interface: SearchMatch
An excerpt of the search match. For example this could be a summary of the Wiki page.

Specified by:
getExcerpt in interface SearchMatch
Returns:
excerpt of the search match. May be null.

getResourceType

public ResourceType getResourceType()
Description copied from interface: SearchMatch
Contains more information about the source of this match.

Specified by:
getResourceType in interface SearchMatch
Returns:
The source resourceType.


Copyright © 2011 Atlassian. All Rights Reserved.