org.xwiki.rendering.wikimodel.util
Class SectionBuilder.TocEntry

java.lang.Object
  extended by 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
           
 
Constructor Summary
SectionBuilder.TocEntry(int docLevel, int level, T data, boolean doc, boolean header)
           
 
Method Summary
 boolean equalsData(SectionBuilder.TocEntry pos)
           
 T getData()
           
 int getDocumentLevel()
           
 int getHeaderLevel()
           
 int getPos()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fDoc

protected boolean fDoc

fHeader

protected boolean fHeader
Constructor Detail

SectionBuilder.TocEntry

public SectionBuilder.TocEntry(int docLevel,
                               int level,
                               T data,
                               boolean doc,
                               boolean header)
Method Detail

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–2015 XWiki. All rights reserved.