Class TreeListBuilder
- java.lang.Object
-
- org.apache.maven.doxia.module.twiki.parser.TreeListBuilder
-
class TreeListBuilder extends java.lang.Object
It helps to build- Version:
- $Id$
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
TreeListBuilder.TreeComponent
A bidirectional tree node
-
Field Summary
Fields Modifier and Type Field Description private TreeListBuilder.TreeComponent
current
the current element of the treeprivate TreeListBuilder.TreeComponent
root
tree rootprivate FormatedTextParser
textParser
parser 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) void
feedEntry(GenericListBlockParser.Type type, int level, java.lang.String text)
recibe un nivel y un texto y armar magicamente (manteniendo estado) el �rbol(package private) ListBlock
getBlock()
private ListBlock
getList(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
- ifformatTextParser
is 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
-
-