org.wikimodel.wem.util
Class SectionBuilder.TocEntry<T>

java.lang.Object
  extended by org.wikimodel.wem.util.SectionBuilder.TocEntry<T>
All Implemented Interfaces:
TreeBuilder.IPos<SectionBuilder.TocEntry<T>>
Enclosing class:
SectionBuilder<T>

protected static class SectionBuilder.TocEntry<T>
extends Object
implements TreeBuilder.IPos<SectionBuilder.TocEntry<T>>


Constructor Summary
SectionBuilder.TocEntry(int docLevel, int level, T data)
           
 
Method Summary
 boolean equalsData(SectionBuilder.TocEntry<T> pos)
           
 int getPos()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SectionBuilder.TocEntry

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

equalsData

public boolean equalsData(SectionBuilder.TocEntry<T> pos)
Specified by:
equalsData in interface TreeBuilder.IPos<SectionBuilder.TocEntry<T>>
Returns:
true if the underlying data in both positions are the same

getPos

public int getPos()
Specified by:
getPos in interface TreeBuilder.IPos<SectionBuilder.TocEntry<T>>
Returns:
the position of the node


Copyright © 2005-2009. All Rights Reserved.