|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vinculumtech.carrierwave.plan.GraphNode com.vinculumtech.carrierwave.plan.GraphNodeSet
GraphNodeSet provides for a set of related GraphNode
instances to be specified as a single node
in a node tree.
Each peer node added will be a "sub graph" node tree for the type it represents.
It is expected all the peer nodes added will be subclasses of a common base type,
typically represented by the defaultPeerNode.
Field Summary |
Fields inherited from class com.vinculumtech.carrierwave.plan.GraphNode |
NO_INDEX, NO_KEY |
Constructor Summary | |
GraphNodeSet()
|
|
GraphNodeSet(java.lang.String edge,
boolean isReadOnly)
Creates a new GraphNodeSet. |
|
GraphNodeSet(java.lang.String edge,
boolean isReadOnly,
boolean isReferenceOnly)
|
Method Summary | |
GraphNode |
addChildNode(GraphNode childNode)
This method is not supported on a GraphNodeSet. |
GraphNode |
addPeerNode(GraphNode graphNode)
Adds a new GraphNode instance as a peer node. |
java.util.List |
getChildren()
|
GraphNode |
getDefaultPeerNode()
|
java.util.List |
getPeerNodes()
Returns all the peerNodes this set represents, including the default node. |
java.lang.String |
getTypeName()
Returns the type of the default peer node. |
boolean |
hasChildren()
|
boolean |
isNodeSet()
|
GraphNode |
setDefaultPeerNode(GraphNode defaultPeerNode)
Sets the defaultPeerNode. |
void |
setEdge(java.lang.String edge)
Sets the edge on all the peer nodes. |
void |
setKey(java.lang.Object key)
Sets the key on all the peer nodes. |
protected void |
setOriginNode(GraphNode originNode)
|
protected void |
setParentNode(GraphNode parentNode)
|
void |
setReadOnly(boolean isReadOnly)
Sets all the peer nodes to read only. |
Methods inherited from class com.vinculumtech.carrierwave.plan.GraphNode |
clone, cloneShallow, findChildNodeWith, findChildNodeWith, getAllNodes, getAllParentNodes, getDepth, getEdge, getFullEdge, getGraphPlan, getIndex, getKey, getNodePath, getOriginNode, getOriginNodeOrThis, getParentNode, isContained, isContainer, isList, isLiteral, isMap, isOrigin, isReadOnly, isReferenceOnly, removeChildNode, resetIndex, resetKey, setGraphPlan, setIndex, setLiteral, setReferenceOnly, setTypeName |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GraphNodeSet(java.lang.String edge, boolean isReadOnly)
edge
- isReadOnly
- public GraphNodeSet(java.lang.String edge, boolean isReadOnly, boolean isReferenceOnly)
public GraphNodeSet()
Method Detail |
public boolean isNodeSet()
isNodeSet
in class GraphNode
public java.lang.String getTypeName()
getTypeName
in class GraphNode
public GraphNode setDefaultPeerNode(GraphNode defaultPeerNode)
defaultPeerNode
-
public GraphNode getDefaultPeerNode()
public java.util.List getPeerNodes()
public GraphNode addPeerNode(GraphNode graphNode)
graphNode
-
public boolean hasChildren()
hasChildren
in class GraphNode
public java.util.List getChildren()
getChildren
in class GraphNode
public GraphNode addChildNode(GraphNode childNode)
addChildNode
in class GraphNode
childNode
-
protected void setParentNode(GraphNode parentNode)
setParentNode
in class GraphNode
parentNode
- protected void setOriginNode(GraphNode originNode)
setOriginNode
in class GraphNode
public void setEdge(java.lang.String edge)
setEdge
in class GraphNode
edge
- public void setKey(java.lang.Object key)
setKey
in class GraphNode
key
- public void setReadOnly(boolean isReadOnly)
setReadOnly
in class GraphNode
isReadOnly
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |