public class RelationNode extends ArrayListNode
Modifier and Type | Field and Description |
---|---|
(package private) java.util.HashMap<Related,RelationNode> |
childPeerHM |
(package private) java.util.HashMap<java.lang.String,RelationNode> |
parentHM |
Related |
peer |
(package private) RelationNode[] |
targets |
(package private) java.lang.String[] |
types |
children, name, parent
Constructor and Description |
---|
RelationNode(java.lang.Object parent,
Related pr) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(ArrayListNode aln) |
void |
clearChildren() |
boolean |
fileAway(java.lang.String rtyp) |
RelationNode |
getParent(java.lang.String rel) |
Related |
getPeer() |
RelationNode |
getPeerEquivalentChild(RelationNode rn) |
private void |
insertUnder(RelationNode parentRN,
RelationNode bot,
java.util.ArrayList rest,
java.lang.String rel) |
RelationNode |
makeChildlessCopy() |
void |
removeChild(RelationNode rn) |
void |
resolve(java.util.HashMap<Related,RelationNode> peers,
java.util.HashSet<java.lang.String> relationTypes) |
boolean |
samePeer(RelationNode rn) |
void |
subtreeify(RelationNode parentRN,
java.util.ArrayList rest,
java.lang.String rel) |
java.lang.String |
toString() |
getChild, getChildCount, getIndexOfChild, getParent, hasChildren, isLeaf, removeChild, setChildren
public Related peer
java.lang.String[] types
RelationNode[] targets
java.util.HashMap<Related,RelationNode> childPeerHM
java.util.HashMap<java.lang.String,RelationNode> parentHM
public RelationNode(java.lang.Object parent, Related pr)
public Related getPeer()
public boolean samePeer(RelationNode rn)
public void clearChildren()
clearChildren
in class ArrayListNode
public RelationNode makeChildlessCopy()
public void addChild(ArrayListNode aln)
addChild
in class ArrayListNode
public void removeChild(RelationNode rn)
public RelationNode getPeerEquivalentChild(RelationNode rn)
public void resolve(java.util.HashMap<Related,RelationNode> peers, java.util.HashSet<java.lang.String> relationTypes)
public java.lang.String toString()
toString
in class ArrayListNode
public boolean fileAway(java.lang.String rtyp)
public RelationNode getParent(java.lang.String rel)
public void subtreeify(RelationNode parentRN, java.util.ArrayList rest, java.lang.String rel)
private void insertUnder(RelationNode parentRN, RelationNode bot, java.util.ArrayList rest, java.lang.String rel)
Copyright © 2013. All Rights Reserved.