org.cdlib.xtf.textEngine
Class XtfChunkMarkPos

Object
  extended by MarkPos
      extended by ChunkMarkPos
          extended by XtfChunkMarkPos
All Implemented Interfaces:
Cloneable

public class XtfChunkMarkPos
extends ChunkMarkPos

Extends ChunkMarkPos by adding node number, word offset, and section type information.

Author:
Martin Haye

Field Summary
 int nodeNumber
          Which node the word is in
 String sectionType
          The section type (if any)
 int wordOffset
          The word offset from the start of the node
 
Fields inherited from class ChunkMarkPos
charPos, chunk, wordPos
 
Constructor Summary
XtfChunkMarkPos()
           
 
Method Summary
 void trim()
          Remove trailing whitespace
 
Methods inherited from class ChunkMarkPos
countTextTo, getTextTo, wordPos
 
Methods inherited from class MarkPos
clone
 
Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodeNumber

public int nodeNumber
Which node the word is in


wordOffset

public int wordOffset
The word offset from the start of the node


sectionType

public String sectionType
The section type (if any)

Constructor Detail

XtfChunkMarkPos

public XtfChunkMarkPos()
Method Detail

trim

public void trim()
Remove trailing whitespace