Package org.opennms.netmgt.search.api
Class SearchResultItem
- java.lang.Object
-
- org.opennms.netmgt.search.api.SearchResultItem
-
public class SearchResultItem extends java.lang.Object
EachSearchResult
contains 0 to nSearchResultItem
s which represent an item for the context, e.g. a Node, or Action.- Author:
- mvrueden
-
-
Constructor Summary
Constructors Constructor Description SearchResultItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMatch(Match match)
void
addMatches(java.util.List<Matcher> matcherList, java.lang.String input)
boolean
equals(java.lang.Object o)
java.lang.String
getIcon()
java.lang.String
getIdentifier()
java.lang.String
getInfo()
java.lang.String
getLabel()
java.util.List<Match>
getMatches()
java.util.Map<java.lang.String,java.lang.String>
getProperties()
java.lang.String
getUrl()
int
getWeight()
int
hashCode()
void
merge(SearchResultItem mergeMe)
void
setIcon(java.lang.String icon)
void
setIdentifier(java.lang.String identifier)
void
setInfo(java.lang.String info)
void
setLabel(java.lang.String label)
void
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
void
setUrl(java.lang.String url)
void
setWeight(int weight)
-
-
-
Method Detail
-
getIdentifier
public java.lang.String getIdentifier()
-
setIdentifier
public void setIdentifier(java.lang.String identifier)
-
getLabel
public java.lang.String getLabel()
-
setLabel
public void setLabel(java.lang.String label)
-
getUrl
public java.lang.String getUrl()
-
setUrl
public void setUrl(java.lang.String url)
-
getIcon
public java.lang.String getIcon()
-
setIcon
public void setIcon(java.lang.String icon)
-
setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
-
getMatches
public java.util.List<Match> getMatches()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
addMatch
public void addMatch(Match match)
-
addMatches
public void addMatches(java.util.List<Matcher> matcherList, java.lang.String input)
-
setWeight
public void setWeight(int weight)
-
getWeight
public int getWeight()
-
merge
public void merge(SearchResultItem mergeMe)
-
setInfo
public void setInfo(java.lang.String info)
-
getInfo
public java.lang.String getInfo()
-
-