|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectarchimate.util.TagTree
public class TagTree
This class implements the tree containing all archiMateTags
in a
hierarchical structure
Field Summary | |
---|---|
static java.lang.String |
ROOT
Tree root tag |
Constructor Summary | |
---|---|
TagTree()
Creates a new tree, sets the tree root and marks it as selected |
Method Summary | |
---|---|
TagNode |
current()
|
TagNode |
getNode(TagNode node,
java.lang.String tag)
Searches for a node with a certain tag in the nodes children |
static java.util.ArrayList<TagNode> |
getUnvisited(TagNode node)
Searches the node children for all unvisited nodes |
int |
nodes()
Returns the number of nodes in the tree |
void |
printTree()
Prints a list of all tree nodes and their state to the standard output for debug purposes |
void |
resetVisited()
Marks all nodes in the tree as visited |
TagNode |
root()
|
void |
setCurrent(TagNode node)
Marks a node as selected |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ROOT
Constructor Detail |
---|
public TagTree()
Method Detail |
---|
public TagNode root()
public TagNode current()
public int nodes()
public void setCurrent(TagNode node)
node
- the node you want to selectpublic void printTree()
public TagNode getNode(TagNode node, java.lang.String tag)
node
- The node which children are searchedtag
- The tag to match
public static java.util.ArrayList<TagNode> getUnvisited(TagNode node)
node
- The node which children are searched
public void resetVisited()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |