Class CategoryHopCriteria
- java.lang.Object
-
- org.opennms.features.topology.api.topo.Criteria
-
- org.opennms.features.topology.api.support.hops.VertexHopCriteria
-
- org.opennms.features.topology.app.internal.support.CategoryHopCriteria
-
- All Implemented Interfaces:
CollapsibleCriteria
,SearchCriteria
public class CategoryHopCriteria extends VertexHopCriteria implements SearchCriteria
- Author:
- Donald Desloge, Seth Leger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CategoryHopCriteria.CategoryVertex
-
Nested classes/interfaces inherited from class org.opennms.features.topology.api.topo.Criteria
Criteria.ElementType
-
-
Constructor Summary
Constructors Constructor Description CategoryHopCriteria(SearchResult searchResult, CategoryProvider categoryProvider, GraphContainer graphContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Vertex
getCollapsedRepresentation()
This function returns the vertex that will be used to represent the group when the state is set to collapsed.String
getNamespace()
This criteria only applies to providers for this namespaceString
getSearchString()
Gets query string that was used for the generation of this criterionSet<VertexRef>
getVertices()
Fetch the list of child vertices that should be collapsedint
hashCode()
boolean
isCollapsed()
Check to see whether the Criteria is collapsed or not.void
setCollapsed(boolean collapsed)
Set the collapsed state of the criteria.-
Methods inherited from class org.opennms.features.topology.api.support.hops.VertexHopCriteria
getId, getLabel, getType, isEmpty, setId, setLabel, toString
-
Methods inherited from class org.opennms.features.topology.api.topo.Criteria
getCriteriaForGraphContainer, getSingleCriteriaForGraphContainer, isDirty, resetDirty, setDirty
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opennms.features.topology.api.topo.CollapsibleCriteria
getId, getLabel
-
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CategoryHopCriteria
public CategoryHopCriteria(SearchResult searchResult, CategoryProvider categoryProvider, GraphContainer graphContainer)
-
-
Method Detail
-
getSearchString
public String getSearchString()
Description copied from interface:SearchCriteria
Gets query string that was used for the generation of this criterion- Specified by:
getSearchString
in interfaceSearchCriteria
- Returns:
-
getNamespace
public String getNamespace()
Description copied from class:Criteria
This criteria only applies to providers for this namespace- Specified by:
getNamespace
in interfaceCollapsibleCriteria
- Specified by:
getNamespace
in classCriteria
-
getVertices
public Set<VertexRef> getVertices()
Description copied from interface:CollapsibleCriteria
Fetch the list of child vertices that should be collapsed- Specified by:
getVertices
in interfaceCollapsibleCriteria
- Specified by:
getVertices
in classVertexHopCriteria
-
isCollapsed
public boolean isCollapsed()
Description copied from interface:CollapsibleCriteria
Check to see whether the Criteria is collapsed or not.- Specified by:
isCollapsed
in interfaceCollapsibleCriteria
-
setCollapsed
public void setCollapsed(boolean collapsed)
Description copied from interface:CollapsibleCriteria
Set the collapsed state of the criteria.- Specified by:
setCollapsed
in interfaceCollapsibleCriteria
- Parameters:
collapsed
- Whether the criteria should be collapsed or not.
-
getCollapsedRepresentation
public Vertex getCollapsedRepresentation()
Description copied from interface:CollapsibleCriteria
This function returns the vertex that will be used to represent the group when the state is set to collapsed.- Specified by:
getCollapsedRepresentation
in interfaceCollapsibleCriteria
-
-