Interface AttributeNodeImplementor<J,E,K>
- Type Parameters:
J- The type of the attributeE- The element type, if this node represents a plural attribute, or the type of the singular attribute, if it doesn'tK- The map key type, if this node represents a map attribute
- All Superinterfaces:
AttributeNode<J>, AttributeNode<J>, GraphNode<J>, GraphNodeImplementor<J>
Integration version of the
AttributeNode contract.-
Method Summary
Modifier and TypeMethodDescriptionCreate a value subgraph representing a plural element rooted at this attribute node.Create a key subgraph rooted at this attribute node.Create a value subgraph representing a singular value rooted at this attribute node.<S extends J>
SubGraphImplementor<S> addTreatedSubgraph(Class<S> type) Create a value subgraph, without knowing whether it represents a singular value or plural element, rooted at this attribute node.TheFetchTypeoption applied to this node, ornullif this node neither adds nor removes the attribute.Map<Class<?>, SubGraphImplementor<?>> All key subgraphs rooted at this node.Map<Class<?>, SubGraphImplementor<?>> All value subgraphs rooted at this node.makeCopy(boolean mutable) markRemoved(boolean removed) Mark the attribute as removed or not.voidmerge(AttributeNodeImplementor<J, E, K> other) Methods inherited from interface AttributeNode
addOption, getAttribute, getAttributeName, getOptionsMethods inherited from interface AttributeNode
getAttributeDescriptor, getKeySubgraphs, getSubgraphs, isRemoved
-
Method Details
-
makeCopy
-
addSubgraph
- Specified by:
addSubgraphin interfaceAttributeNode<J>
-
addTreatedSubgraph
- Specified by:
addTreatedSubgraphin interfaceAttributeNode<J>
-
markRemoved
Mark the attribute as removed or not. We allow passing the boolean to allow for later unmarking it for removal, e.g. should Graph.addAttributeNode(Attribute) be called later.- Returns:
thisfor chaining.
-
getFetchType
-
addValueSubgraph
Create a value subgraph, without knowing whether it represents a singular value or plural element, rooted at this attribute node.- API Note:
- This version is more lenient and is therefore disfavored. Prefer the use
of
addSingularSubgraph()andaddElementSubgraph().
-
addSingularSubgraph
Create a value subgraph representing a singular value rooted at this attribute node. -
addElementSubgraph
Create a value subgraph representing a plural element rooted at this attribute node. -
addKeySubgraph
Create a key subgraph rooted at this attribute node. -
merge
-
getSubGraphs
Description copied from interface:AttributeNodeAll value subgraphs rooted at this node.Includes treated subgraphs.
- Specified by:
getSubGraphsin interfaceAttributeNode<J>- See Also:
-
getKeySubGraphs
Description copied from interface:AttributeNodeAll key subgraphs rooted at this node.Includes treated subgraphs.
- Specified by:
getKeySubGraphsin interfaceAttributeNode<J>- See Also:
-
getValueSubgraph
-
getKeySubgraph
-