org.xwiki.rendering.wikimodel.util
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>
|
Field Summary |
protected boolean |
fDoc
|
protected boolean |
fHeader
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fDoc
protected boolean fDoc
fHeader
protected boolean fHeader
SectionBuilder.TocEntry
public SectionBuilder.TocEntry(int docLevel,
int level,
T data,
boolean doc,
boolean header)
equalsData
public boolean equalsData(SectionBuilder.TocEntry pos)
- Specified by:
equalsData in interface TreeBuilder.IPos<SectionBuilder.TocEntry>
- Returns:
true if the underlying data in both positions
are the same
getData
public T getData()
- Specified by:
getData in interface ISectionListener.IPos<T>
getDocumentLevel
public int getDocumentLevel()
- Specified by:
getDocumentLevel in interface ISectionListener.IPos<T>
getHeaderLevel
public int getHeaderLevel()
- Specified by:
getHeaderLevel in interface ISectionListener.IPos<T>
getPos
public int getPos()
- Specified by:
getPos in interface TreeBuilder.IPos<SectionBuilder.TocEntry>
- Returns:
- the position of the node
Copyright © 2004–2013 XWiki. All rights reserved.