Class SearchSuggestion
- java.lang.Object
-
- org.opennms.netmgt.graph.api.search.SearchSuggestion
-
- All Implemented Interfaces:
java.lang.Comparable<SearchSuggestion>
public class SearchSuggestion extends java.lang.Object implements java.lang.Comparable<SearchSuggestion>
ASearchSuggestion
is provided to the user and was created from a (partial) search query. A suggestion is a very abstract and may not directly relate to a vertex. For example a category. The main idea is, that aSearchSuggestion
represents an item a user can select, which afterwards is resolved to a List of vertices/edges.
-
-
Constructor Summary
Constructors Constructor Description SearchSuggestion(java.lang.String providerId, java.lang.String context, java.lang.String id, java.lang.String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SearchSuggestion that)
boolean
equals(java.lang.Object o)
java.lang.String
getContext()
java.lang.String
getId()
java.lang.String
getLabel()
java.lang.String
getProvider()
int
hashCode()
void
setContext(java.lang.String context)
void
setId(java.lang.String id)
void
setLabel(java.lang.String label)
void
setProvider(java.lang.String provider)
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)
-
getContext
public java.lang.String getContext()
-
setContext
public void setContext(java.lang.String context)
-
getProvider
public java.lang.String getProvider()
-
setProvider
public void setProvider(java.lang.String provider)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(SearchSuggestion that)
- Specified by:
compareTo
in interfacejava.lang.Comparable<SearchSuggestion>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-