Class IpLikeHopCriteria
- 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.IpLikeHopCriteria
-
- All Implemented Interfaces:
CollapsibleCriteria
,SearchCriteria
public class IpLikeHopCriteria extends VertexHopCriteria implements SearchCriteria
Thisimplementation supports the users selection of search results from an IPLIKE query in the topology UI. - Author:
- David Hustace, Donald Desloge, Seth Leger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IpLikeHopCriteria.IPVertex
-
Nested classes/interfaces inherited from class org.opennms.features.topology.api.topo.Criteria
Criteria.ElementType
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAMESPACE
-
Constructor Summary
Constructors Constructor Description IpLikeHopCriteria(SearchResult searchResult, IpInterfaceProvider ipInterfaceProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Vertex
getCollapsedRepresentation()
This function returns the vertex that will be used to represent the group when the state is set to collapsed.java.lang.String
getNamespace()
This criteria only applies to providers for this namespacejava.lang.String
getSearchString()
Gets query string that was used for the generation of this criterionjava.util.Set<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 java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IpLikeHopCriteria
public IpLikeHopCriteria(SearchResult searchResult, IpInterfaceProvider ipInterfaceProvider)
-
-
Method Detail
-
getSearchString
public java.lang.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 java.lang.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 java.util.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
-
-