Package org.opennms.netmgt.search.api
Class Match
- java.lang.Object
-
- org.opennms.netmgt.search.api.Match
-
public class Match extends java.lang.Object
Represents a search match, allowing some additional feedback to the user. A node for example can be found either by label, category, ip address or asset field. TheSearchResultItem
however may represent the same node. For the user however it would be useful which criteria of the node actually matched the search input query. AMatch
allows to do that.- Author:
- mvrueden
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId()
java.lang.String
getLabel()
java.lang.String
getValue()
void
setId(java.lang.String id)
void
setLabel(java.lang.String label)
java.lang.String
toString()
-
-
-
Method Detail
-
getId
public java.lang.String getId()
-
setId
public void setId(java.lang.String id)
-
getLabel
public java.lang.String getLabel()
-
setLabel
public void setLabel(java.lang.String label)
-
getValue
public java.lang.String getValue()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-