public abstract class AbstractDomainGraphContainer<G extends AbstractDomainGraph<? extends AbstractDomainVertex,? extends AbstractDomainEdge>> extends Object implements ImmutableGraphContainer<G>
GenericGraphContainer
.
Can be extended by a domain specific graph container class.
It contains no data of it's own but operates on the data of it's wrapped GenericGraphContainer
.Modifier and Type | Class and Description |
---|---|
static class |
AbstractDomainGraphContainer.AbstractDomainGraphContainerBuilder<T extends AbstractDomainGraphContainer.AbstractDomainGraphContainerBuilder,G extends AbstractDomainGraph<? extends AbstractDomainVertex,? extends AbstractDomainEdge>> |
Modifier | Constructor and Description |
---|---|
protected |
AbstractDomainGraphContainer(GenericGraphContainer delegate) |
Modifier and Type | Method and Description |
---|---|
GenericGraphContainer |
asGenericGraphContainer()
Converts the
ImmutableGraphContainer to its generic counter part. |
protected abstract G |
convert(GenericGraph graph) |
boolean |
equals(Object o) |
String |
getDescription() |
G |
getGraph(String namespace)
Returns the graph with the requested namespace, or null if it does not exist.
|
GraphInfo |
getGraphInfo(String namespace) |
List<GraphInfo> |
getGraphInfos() |
List<G> |
getGraphs()
Returns the list of graphs provided by the container.
|
String |
getId() |
String |
getLabel() |
List<String> |
getNamespaces() |
GraphInfo |
getPrimaryGraphInfo() |
int |
hashCode() |
String |
toString() |
protected AbstractDomainGraphContainer(GenericGraphContainer delegate)
protected abstract G convert(GenericGraph graph)
public List<G> getGraphs()
ImmutableGraphContainer
getGraphs
in interface ImmutableGraphContainer<G extends AbstractDomainGraph<? extends AbstractDomainVertex,? extends AbstractDomainEdge>>
public G getGraph(String namespace)
ImmutableGraphContainer
getGraph
in interface ImmutableGraphContainer<G extends AbstractDomainGraph<? extends AbstractDomainVertex,? extends AbstractDomainEdge>>
namespace
- the namespace of the graph to getpublic List<String> getNamespaces()
getNamespaces
in interface GraphContainerInfo
public String getDescription()
getDescription
in interface GraphContainerInfo
public String getLabel()
getLabel
in interface GraphContainerInfo
public GraphInfo getGraphInfo(String namespace)
getGraphInfo
in interface GraphContainerInfo
public GraphInfo getPrimaryGraphInfo()
getPrimaryGraphInfo
in interface GraphContainerInfo
public List<GraphInfo> getGraphInfos()
getGraphInfos
in interface GraphContainerInfo
public String getId()
getId
in interface GraphContainerInfo
public GenericGraphContainer asGenericGraphContainer()
ImmutableGraphContainer
ImmutableGraphContainer
to its generic counter part.asGenericGraphContainer
in interface ImmutableGraphContainer<G extends AbstractDomainGraph<? extends AbstractDomainVertex,? extends AbstractDomainEdge>>
Copyright © 2021. All rights reserved.