Class SearchSuggestion
- java.lang.Object
-
- org.opennms.netmgt.graph.api.search.SearchSuggestion
-
- All Implemented Interfaces:
Comparable<SearchSuggestion>
public class SearchSuggestion extends Object implements 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(String providerId, String context, String id, String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SearchSuggestion that)
boolean
equals(Object o)
String
getContext()
String
getId()
String
getLabel()
String
getProvider()
int
hashCode()
void
setContext(String context)
void
setId(String id)
void
setLabel(String label)
void
setProvider(String provider)
String
toString()
-
-
-
Method Detail
-
getId
public String getId()
-
setId
public void setId(String id)
-
getLabel
public String getLabel()
-
setLabel
public void setLabel(String label)
-
getContext
public String getContext()
-
setContext
public void setContext(String context)
-
getProvider
public String getProvider()
-
setProvider
public void setProvider(String provider)
-
compareTo
public int compareTo(SearchSuggestion that)
- Specified by:
compareTo
in interfaceComparable<SearchSuggestion>
-
-