public class RelationTree extends java.lang.Object implements PivotedTree
Modifier and Type | Field and Description |
---|---|
(package private) int |
iPivot |
(package private) java.util.HashMap<Related,RelationNode> |
peers |
(package private) java.lang.String[] |
pivotNames |
(package private) java.lang.String[][] |
pivotOrders |
(package private) java.util.HashSet<java.lang.String> |
relationTypes |
(package private) ArrayListNode |
rootNode |
(package private) int |
rootPolicy |
(package private) TreeChangeReporter |
tcReporter |
Constructor and Description |
---|
RelationTree(java.util.ArrayList<Related> coll) |
RelationTree(SingleParent sp) |
Modifier and Type | Method and Description |
---|---|
private java.util.ArrayList<RelationNode> |
addAll(java.util.ArrayList<Related> coll) |
void |
build(int poin) |
void |
childRemoved(Related parent,
Related child) |
java.lang.Object[] |
getObjectPath(java.lang.String s,
boolean b) |
java.lang.Object[] |
getPathTo(Related child) |
java.lang.String[] |
getPivotNames() |
java.lang.String |
getPivotRelation() |
TreeNode |
getRoot() |
int |
getRootPolicy() |
private java.util.ArrayList<RelationNode> |
getRoots(java.util.ArrayList<RelationNode> rest,
java.lang.String rel) |
void |
init(java.util.ArrayList<Related> coll) |
void |
newBranch(Related parent,
Related child) |
private void |
newItem(Related parent,
Related child) |
void |
repivot(java.lang.String s) |
private void |
resolveAll(java.util.ArrayList<RelationNode> coll) |
void |
setDefaultPivotOrders() |
void |
setPivotNames(java.lang.String[] sa) |
void |
setPivotOrders(java.lang.String[][] saa) |
void |
setRootPolicy(int ipol) |
void |
setTreeChangeReporter(TreeChangeReporter tcr) |
void |
treeify(java.util.ArrayList<RelationNode> roots,
java.util.ArrayList<RelationNode> rest,
java.lang.String rel) |
ArrayListNode rootNode
java.util.HashMap<Related,RelationNode> peers
java.util.HashSet<java.lang.String> relationTypes
java.lang.String[][] pivotOrders
java.lang.String[] pivotNames
int iPivot
int rootPolicy
TreeChangeReporter tcReporter
public RelationTree(java.util.ArrayList<Related> coll)
public RelationTree(SingleParent sp)
public void setRootPolicy(int ipol)
public int getRootPolicy()
getRootPolicy
in interface Tree
public java.lang.String getPivotRelation()
public void init(java.util.ArrayList<Related> coll)
private java.util.ArrayList<RelationNode> addAll(java.util.ArrayList<Related> coll)
private void resolveAll(java.util.ArrayList<RelationNode> coll)
public void setDefaultPivotOrders()
public void setPivotOrders(java.lang.String[][] saa)
public java.lang.String[] getPivotNames()
getPivotNames
in interface PivotedTree
public void setPivotNames(java.lang.String[] sa)
public void repivot(java.lang.String s)
repivot
in interface PivotedTree
public void build(int poin)
public void treeify(java.util.ArrayList<RelationNode> roots, java.util.ArrayList<RelationNode> rest, java.lang.String rel)
private java.util.ArrayList<RelationNode> getRoots(java.util.ArrayList<RelationNode> rest, java.lang.String rel)
public java.lang.Object[] getPathTo(Related child)
public void setTreeChangeReporter(TreeChangeReporter tcr)
setTreeChangeReporter
in interface Tree
public java.lang.Object[] getObjectPath(java.lang.String s, boolean b)
getObjectPath
in interface Tree
Copyright © 2013. All Rights Reserved.