Class GenericGraphContainer
- java.lang.Object
-
- org.opennms.netmgt.graph.api.generic.GenericGraphContainer
-
- All Implemented Interfaces:
ImmutableGraphContainer<GenericGraph>,GraphContainerInfo
public class GenericGraphContainer extends Object implements ImmutableGraphContainer<GenericGraph>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenericGraphContainer.GenericGraphContainerBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GenericGraphContainerasGenericGraphContainer()Converts theImmutableGraphContainerto its generic counter part.static GenericGraphContainer.GenericGraphContainerBuilderbuilder()booleanequals(Object o)StringgetDescription()GenericGraphgetGraph(String namespace)Returns the graph with the requested namespace, or null if it does not exist.GraphInfogetGraphInfo(String namespace)List<GraphInfo>getGraphInfos()List<GenericGraph>getGraphs()Returns the list of graphs provided by the container.StringgetId()StringgetLabel()List<String>getNamespaces()GraphInfogetPrimaryGraphInfo()Map<String,Object>getProperties()inthashCode()voidsetDescription(String description)
-
-
-
Method Detail
-
getGraphs
public List<GenericGraph> getGraphs()
Description copied from interface:ImmutableGraphContainerReturns the list of graphs provided by the container. The returned list, should never be null or empty.- Specified by:
getGraphsin interfaceImmutableGraphContainer<GenericGraph>- Returns:
- the provided graphs. Must never be null or empty
-
getGraph
public GenericGraph getGraph(String namespace)
Description copied from interface:ImmutableGraphContainerReturns the graph with the requested namespace, or null if it does not exist.- Specified by:
getGraphin interfaceImmutableGraphContainer<GenericGraph>- Parameters:
namespace- the namespace of the graph to get- Returns:
- the graph with the requested namespace or null if it does not exist
-
asGenericGraphContainer
public GenericGraphContainer asGenericGraphContainer()
Description copied from interface:ImmutableGraphContainerConverts theImmutableGraphContainerto its generic counter part.- Specified by:
asGenericGraphContainerin interfaceImmutableGraphContainer<GenericGraph>
-
getId
public String getId()
- Specified by:
getIdin interfaceGraphContainerInfo
-
getNamespaces
public List<String> getNamespaces()
- Specified by:
getNamespacesin interfaceGraphContainerInfo
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceGraphContainerInfo
-
setDescription
public void setDescription(String description)
-
getLabel
public String getLabel()
- Specified by:
getLabelin interfaceGraphContainerInfo
-
getGraphInfo
public GraphInfo getGraphInfo(String namespace)
- Specified by:
getGraphInfoin interfaceGraphContainerInfo
-
getPrimaryGraphInfo
public GraphInfo getPrimaryGraphInfo()
- Specified by:
getPrimaryGraphInfoin interfaceGraphContainerInfo
-
getGraphInfos
public List<GraphInfo> getGraphInfos()
- Specified by:
getGraphInfosin interfaceGraphContainerInfo
-
builder
public static GenericGraphContainer.GenericGraphContainerBuilder builder()
-
-