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.TreeComponent
the fatherprivate String
node textprivate GenericListBlockParser.Type
type 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.TreeComponent
addChildren
(String t, GenericListBlockParser.Type ttype) adds a children node(package private) TreeListBuilder.TreeComponent[]
(package private) int
getDepth()
(package private) TreeListBuilder.TreeComponent
(package private) String
getText()
Returns the text.(package private) GenericListBlockParser.Type
getType()
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:
String
with the text.
-
getType
GenericListBlockParser.Type getType()Returns the type.- Returns:
Type
with the text.
-