|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 GraphNodepublic java.lang.String getTypeName()
getTypeName in class GraphNodepublic 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 GraphNodepublic java.util.List getChildren()
getChildren in class GraphNodepublic GraphNode addChildNode(GraphNode childNode)
addChildNode in class GraphNodechildNode -
protected void setParentNode(GraphNode parentNode)
setParentNode in class GraphNodeparentNode - protected void setOriginNode(GraphNode originNode)
setOriginNode in class GraphNodepublic void setEdge(java.lang.String edge)
setEdge in class GraphNodeedge - public void setKey(java.lang.Object key)
setKey in class GraphNodekey - public void setReadOnly(boolean isReadOnly)
setReadOnly in class GraphNodeisReadOnly -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||