|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.bioinfweb.treegraph.document.IDManager
public class IDManager
| Field Summary | |
|---|---|
static String |
RAND_CHARS
|
static int |
RAND_LENGTH
|
| Constructor Summary | |
|---|---|
IDManager()
|
|
| Method Summary | |
|---|---|
static Label |
getFirstLabel(Node root,
String id)
|
static String[] |
getHiddenBranchDataIDs(Node root)
Searches for all the IDs of hidden data that is assigned to a branch present in the subtree under root. |
static Vector<String> |
getHiddenBranchDataIDVector(Node root)
|
static String[] |
getHiddenNodeDataIDs(Node root)
Searches for all the IDs of hidden data that is assigned to a node present in the subtree under root. |
static Vector<String> |
getHiddenNodeDataIDVector(Node root)
|
static String[] |
getIDs(Node root)
Searches for all IDs (hidden data and label IDs) present in the subtree under root. |
static Vector<String> |
getIDVector(Node root)
Searches for all IDs present in the subtree under root. |
static String[] |
getLabelIDs(Node root)
Searches for all label IDs present in the subtree under root. |
static Vector<String> |
getLabelIDVector(Node root)
|
private static Vector<String> |
getVector(Node root,
boolean includeLabels,
boolean includeNodeHiddenData,
boolean includeBranchHiddenData)
|
static boolean |
idExists(Node root,
String id)
|
static String |
newID(Vector<String> ids)
|
private static void |
renameHiddenDataID(HiddenDataElement element,
String oldName,
String newName)
|
static void |
renameID(String oldName,
String newName,
Node root)
Changes all accurences of the given ID in the subtree under root. |
private static void |
renameLabelIDInLabelBlock(String oldName,
String newName,
Labels labels,
boolean above)
|
private static void |
searchHiddenDataIDs(HiddenDataElement element,
Vector<String> list)
|
private static void |
searchIDsInSubtree(Node root,
Vector<String> list,
boolean includeLabels,
boolean includeNodeHiddenData,
boolean includeBranchHiddenData)
|
private static void |
searchLabelIDsInLabelBlock(Labels labels,
boolean above,
Vector<String> list)
Adds all label IDs to the specified list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String RAND_CHARS
public static final int RAND_LENGTH
| Constructor Detail |
|---|
public IDManager()
| Method Detail |
|---|
private static void searchLabelIDsInLabelBlock(Labels labels,
boolean above,
Vector<String> list)
labels - above - list -
private static void searchHiddenDataIDs(HiddenDataElement element,
Vector<String> list)
private static void searchIDsInSubtree(Node root,
Vector<String> list,
boolean includeLabels,
boolean includeNodeHiddenData,
boolean includeBranchHiddenData)
public static String[] getIDs(Node root)
root - - the root node of the subtree to be searched.
public static String[] getLabelIDs(Node root)
root - - the root node of the subtree to be searched.
public static String[] getHiddenBranchDataIDs(Node root)
root - - the root node of the subtree to be searched.
public static String[] getHiddenNodeDataIDs(Node root)
root - - the root node of the subtree to be searched.
private static Vector<String> getVector(Node root,
boolean includeLabels,
boolean includeNodeHiddenData,
boolean includeBranchHiddenData)
public static Vector<String> getIDVector(Node root)
root - - the root node of the subtree to be searched.
public static Vector<String> getLabelIDVector(Node root)
public static Vector<String> getHiddenBranchDataIDVector(Node root)
public static Vector<String> getHiddenNodeDataIDVector(Node root)
private static void renameLabelIDInLabelBlock(String oldName,
String newName,
Labels labels,
boolean above)
private static void renameHiddenDataID(HiddenDataElement element,
String oldName,
String newName)
public static void renameID(String oldName,
String newName,
Node root)
root - - the root node of the subtree where the renaming should take placepublic static String newID(Vector<String> ids)
public static Label getFirstLabel(Node root,
String id)
public static boolean idExists(Node root,
String id)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||