public interface Graph<J> extends GraphNode<J>
Modifier and Type | Method and Description |
---|---|
<AJ> AttributeNode<AJ> |
addAttributeNode(Attribute<? extends J,AJ> attribute)
Add an AttributeNode (with no associated SubGraphNode) to this container
by Attribute reference
|
<AJ> AttributeNode<AJ> |
addAttributeNode(String attributeName)
Add an AttributeNode (with no associated SubGraphNodes) to this container
by attribute name
|
<AJ> SubGraph<AJ> |
addKeySubGraph(Attribute<? extends J,AJ> attribute) |
<AJ> SubGraph<? extends AJ> |
addKeySubGraph(Attribute<? extends J,AJ> attribute,
Class<? extends AJ> type) |
<AJ> SubGraph<AJ> |
addKeySubGraph(String attributeName) |
<AJ> SubGraph<AJ> |
addKeySubGraph(String attributeName,
Class<AJ> type) |
<AJ> SubGraph<AJ> |
addSubGraph(Attribute<? extends J,AJ> attribute)
Create a (mutable) SubGraphNode associated with the AttributeNode for the given
Attribute.
|
<AJ> SubGraph<? extends AJ> |
addSubGraph(Attribute<? extends J,AJ> attribute,
Class<? extends AJ> type) |
<AJ> SubGraph<AJ> |
addSubGraph(String attributeName)
Create a (mutable) SubGraphNode associated with the named AttributeNode.
|
<AJ> SubGraph<AJ> |
addSubGraph(String attributeName,
Class<AJ> type) |
<AJ> AttributeNode<AJ> |
findAttributeNode(Attribute<? extends J,AJ> attribute)
Find an already existing AttributeNode by corresponding attribute
reference, within this container
|
<AJ> AttributeNode<AJ> |
findAttributeNode(String attributeName)
Find an already existing AttributeNode by attributeName within this
container
|
List<AttributeNode<?>> |
getAttributeNodeList()
Get a list of all existing AttributeNodes within this container
|
List<AttributeNode<?>> |
getGraphAttributeNodes()
Ultimately only needed for implementing
EntityGraph.getAttributeNodes()
and Subgraph.getAttributeNodes() |
ManagedType<J> |
getGraphedType()
Graphs apply only to ManagedTypes.
|
Graph<J> |
makeCopy(boolean mutable) |
RootGraph<J> |
makeRootGraph(String name,
boolean mutable)
Create a named (if passed `name` != null) root Graph.
|
SubGraph<J> |
makeSubGraph(boolean mutable)
Create a (mutable/immutable) SubGraph based on this Graph
|
ManagedType<J> getGraphedType()
RootGraph<J> makeRootGraph(String name, boolean mutable) throws CannotBecomeEntityGraphException
CannotBecomeEntityGraphException
- For named attributes
that are not entity valuedSubGraph<J> makeSubGraph(boolean mutable)
List<AttributeNode<?>> getGraphAttributeNodes()
EntityGraph.getAttributeNodes()
and Subgraph.getAttributeNodes()
<AJ> AttributeNode<AJ> findAttributeNode(String attributeName)
<AJ> AttributeNode<AJ> findAttributeNode(Attribute<? extends J,AJ> attribute)
List<AttributeNode<?>> getAttributeNodeList()
<AJ> AttributeNode<AJ> addAttributeNode(String attributeName)
<AJ> AttributeNode<AJ> addAttributeNode(Attribute<? extends J,AJ> attribute)
<AJ> SubGraph<AJ> addSubGraph(String attributeName) throws CannotContainSubGraphException
CannotContainSubGraphException
<AJ> SubGraph<AJ> addSubGraph(String attributeName, Class<AJ> type) throws CannotContainSubGraphException
CannotContainSubGraphException
<AJ> SubGraph<AJ> addSubGraph(Attribute<? extends J,AJ> attribute) throws CannotContainSubGraphException
CannotContainSubGraphException
<AJ> SubGraph<? extends AJ> addSubGraph(Attribute<? extends J,AJ> attribute, Class<? extends AJ> type) throws CannotContainSubGraphException
CannotContainSubGraphException
<AJ> SubGraph<AJ> addKeySubGraph(String attributeName) throws CannotContainSubGraphException
CannotContainSubGraphException
<AJ> SubGraph<AJ> addKeySubGraph(String attributeName, Class<AJ> type) throws CannotContainSubGraphException
CannotContainSubGraphException
<AJ> SubGraph<AJ> addKeySubGraph(Attribute<? extends J,AJ> attribute) throws CannotContainSubGraphException
CannotContainSubGraphException
<AJ> SubGraph<? extends AJ> addKeySubGraph(Attribute<? extends J,AJ> attribute, Class<? extends AJ> type) throws CannotContainSubGraphException
CannotContainSubGraphException
Copyright © 2001-2019 Red Hat, Inc. All Rights Reserved.