Package org.opennms.netmgt.search.api
Class SearchContext
- java.lang.Object
-
- org.opennms.netmgt.search.api.SearchContext
-
public class SearchContext extends java.lang.Object
The search results are grouped by context. In order to visualize it accordingly each context must have a name and weight.- Author:
- mvrueden
-
-
Constructor Summary
Constructors Constructor Description SearchContext(java.lang.String name)
SearchContext(java.lang.String name, int weight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contributesTo(java.lang.String contextName)
boolean
equals(java.lang.Object o)
java.lang.String
getName()
int
getWeight()
int
hashCode()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getWeight
public int getWeight()
-
contributesTo
public boolean contributesTo(java.lang.String contextName)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-