Class TreeListBuilder.TreeComponent
java.lang.Object
org.apache.maven.doxia.module.twiki.parser.TreeListBuilder.TreeComponent
- Enclosing class:
TreeListBuilder
A bidirectional tree node
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<TreeListBuilder.TreeComponent> childrensprivate TreeListBuilder.TreeComponentthe fatherprivate Stringnode textprivate GenericListBlockParser.Typetype of the list -
Constructor Summary
ConstructorsConstructorDescriptionTreeComponent(TreeListBuilder.TreeComponent father, String text, GenericListBlockParser.Type type) Creates the TreeComponent. -
Method Summary
Modifier and TypeMethodDescription(package private) TreeListBuilder.TreeComponentaddChildren(String t, GenericListBlockParser.Type ttype) adds a children node(package private) TreeListBuilder.TreeComponent[](package private) intgetDepth()(package private) TreeListBuilder.TreeComponent(package private) StringgetText()Returns the text.(package private) GenericListBlockParser.TypegetType()Returns the type.toString()
-
Field Details
-
children
childrens -
text
node text -
father
the father -
type
type of the list
-
-
Constructor Details
-
TreeComponent
TreeComponent(TreeListBuilder.TreeComponent father, String text, GenericListBlockParser.Type type) Creates the TreeComponent.- Parameters:
father- Component fathertext- component texttype- component type
-
-
Method Details
-
getChildren
TreeListBuilder.TreeComponent[] getChildren()- Returns:
- my childrens
-
addChildren
adds a children node- Parameters:
t- text of the childrenttype- component type- Returns:
- the new node created
-
getFather
TreeListBuilder.TreeComponent getFather()- Returns:
- the father
-
getDepth
int getDepth()- Returns:
- the node depth in the tree
-
toString
-
toString
-
getText
String getText()Returns the text.- Returns:
Stringwith the text.
-
getType
GenericListBlockParser.Type getType()Returns the type.- Returns:
Typewith the text.
-