Class SectionBuilder.TocEntry
- java.lang.Object
-
- org.xwiki.rendering.wikimodel.util.SectionBuilder.TocEntry
-
- All Implemented Interfaces:
ISectionListener.IPos<T>
,TreeBuilder.IPos<SectionBuilder.TocEntry>
- Enclosing class:
- SectionBuilder<T>
protected class SectionBuilder.TocEntry extends Object implements TreeBuilder.IPos<SectionBuilder.TocEntry>, ISectionListener.IPos<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equalsData(SectionBuilder.TocEntry pos)
T
getData()
int
getDocumentLevel()
int
getHeaderLevel()
int
getPos()
-
-
-
Constructor Detail
-
TocEntry
public TocEntry(int docLevel, int level, T data, boolean doc, boolean header)
-
-
Method Detail
-
equalsData
public boolean equalsData(SectionBuilder.TocEntry pos)
- Specified by:
equalsData
in interfaceTreeBuilder.IPos<SectionBuilder.TocEntry>
- Returns:
true
if the underlying data in both positions are the same
-
getData
public T getData()
- Specified by:
getData
in interfaceISectionListener.IPos<T>
-
getDocumentLevel
public int getDocumentLevel()
- Specified by:
getDocumentLevel
in interfaceISectionListener.IPos<T>
-
getHeaderLevel
public int getHeaderLevel()
- Specified by:
getHeaderLevel
in interfaceISectionListener.IPos<T>
-
getPos
public int getPos()
- Specified by:
getPos
in interfaceTreeBuilder.IPos<SectionBuilder.TocEntry>
- Returns:
- the position of the node
-
-