Class TreeListBuilder.TreeComponent
- java.lang.Object
-
- org.apache.maven.doxia.module.twiki.parser.TreeListBuilder.TreeComponent
-
- Enclosing class:
- TreeListBuilder
class TreeListBuilder.TreeComponent extends java.lang.Object
A bidirectional tree node- Version:
- $Id$
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<TreeListBuilder.TreeComponent>
children
childrensprivate TreeListBuilder.TreeComponent
father
the fatherprivate java.lang.String
text
node textprivate GenericListBlockParser.Type
type
type 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.TreeComponent
addChildren(java.lang.String t, GenericListBlockParser.Type ttype)
adds a children node(package private) TreeListBuilder.TreeComponent[]
getChildren()
(package private) int
getDepth()
(package private) TreeListBuilder.TreeComponent
getFather()
(package private) java.lang.String
getText()
Returns the text.(package private) GenericListBlockParser.Type
getType()
Returns the type.java.lang.String
toString()
java.lang.String
toString(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:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(java.lang.String indent)
-
getText
java.lang.String getText()
Returns the text.- Returns:
String
with the text.
-
getType
GenericListBlockParser.Type getType()
Returns the type.- Returns:
Type
with the text.
-
-