Class TreeListBuilder
- java.lang.Object
-
- org.apache.maven.doxia.module.twiki.parser.TreeListBuilder
-
class TreeListBuilder extends java.lang.ObjectIt helps to build
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classTreeListBuilder.TreeComponentA bidirectional tree node
-
Field Summary
Fields Modifier and Type Field Description private TreeListBuilder.TreeComponentcurrentthe current element of the treeprivate TreeListBuilder.TreeComponentroottree rootprivate FormatedTextParsertextParserparser that create text blocks
-
Constructor Summary
Constructors Constructor Description TreeListBuilder(FormatedTextParser formatTextParser)Creates the TreeListBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidfeedEntry(GenericListBlockParser.Type type, int level, java.lang.String text)recibe un nivel y un texto y armar magicamente (manteniendo estado) el �rbol(package private) ListBlockgetBlock()private ListBlockgetList(TreeListBuilder.TreeComponent tc)Wrapperprivate java.util.List<ListItemBlock>getListItems(TreeListBuilder.TreeComponent tc)
-
-
-
Field Detail
-
textParser
private final FormatedTextParser textParser
parser that create text blocks
-
root
private final TreeListBuilder.TreeComponent root
tree root
-
current
private TreeListBuilder.TreeComponent current
the current element of the tree
-
-
Constructor Detail
-
TreeListBuilder
TreeListBuilder(FormatedTextParser formatTextParser) throws java.lang.IllegalArgumentException
Creates the TreeListBuilder.- Parameters:
formatTextParser- parser that create text blocks- Throws:
java.lang.IllegalArgumentException- ifformatTextParseris null
-
-
Method Detail
-
feedEntry
void feedEntry(GenericListBlockParser.Type type, int level, java.lang.String text)
recibe un nivel y un texto y armar magicamente (manteniendo estado) el �rbol- Parameters:
type- type of listlevel- indentation level of the itemtext- text of the item
-
getBlock
ListBlock getBlock()
- Returns:
- a Block for the list that we received
-
getList
private ListBlock getList(TreeListBuilder.TreeComponent tc)
Wrapper- Parameters:
tc- tree- Returns:
- list Block for this tree
-
getListItems
private java.util.List<ListItemBlock> getListItems(TreeListBuilder.TreeComponent tc)
- Parameters:
tc- tree- Returns:
- list Block for this tree
-
-