Class TreeListBuilder.TreeComponent
- java.lang.Object
-
- org.apache.maven.doxia.module.twiki.parser.TreeListBuilder.TreeComponent
-
- Enclosing class:
- TreeListBuilder
static class TreeListBuilder.TreeComponent extends java.lang.ObjectA bidirectional tree node
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<TreeListBuilder.TreeComponent>childrenchildrensprivate TreeListBuilder.TreeComponentfatherthe fatherprivate java.lang.Stringtextnode textprivate GenericListBlockParser.Typetypetype of the list
-
Constructor Summary
Constructors Constructor Description TreeComponent(TreeListBuilder.TreeComponent father, java.lang.String text, GenericListBlockParser.Type type)Creates the TreeComponent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) TreeListBuilder.TreeComponentaddChildren(java.lang.String t, GenericListBlockParser.Type ttype)adds a children node(package private) TreeListBuilder.TreeComponent[]getChildren()(package private) intgetDepth()(package private) TreeListBuilder.TreeComponentgetFather()(package private) java.lang.StringgetText()Returns the text.(package private) GenericListBlockParser.TypegetType()Returns the type.java.lang.StringtoString()java.lang.StringtoString(java.lang.String indent)
-
-
-
Field Detail
-
children
private java.util.List<TreeListBuilder.TreeComponent> children
childrens
-
text
private java.lang.String text
node text
-
father
private TreeListBuilder.TreeComponent father
the father
-
type
private GenericListBlockParser.Type type
type of the list
-
-
Constructor Detail
-
TreeComponent
TreeComponent(TreeListBuilder.TreeComponent father, java.lang.String text, GenericListBlockParser.Type type)
Creates the TreeComponent.- Parameters:
father- Component fathertext- component texttype- component type
-
-
Method Detail
-
getChildren
TreeListBuilder.TreeComponent[] getChildren()
- Returns:
- my childrens
-
addChildren
TreeListBuilder.TreeComponent addChildren(java.lang.String t, GenericListBlockParser.Type ttype)
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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(java.lang.String indent)
-
getText
java.lang.String getText()
Returns the text.- Returns:
Stringwith the text.
-
getType
GenericListBlockParser.Type getType()
Returns the type.- Returns:
Typewith the text.
-
-