gate.creole.gazetteer
Class NodePosition

java.lang.Object
  extended by gate.creole.gazetteer.NodePosition

public class NodePosition
extends Object

Title: NodePosition.java

Description: This class is used to store the information about the changes in the text and the addition or the subtraction of the spaces. It is used by FlexibleGazetteer.

Author:
Niraj Aswani

Constructor Summary
NodePosition(long osn, long oen, long nsn, long nen)
          constructor
 
Method Summary
 long getNewEndOffset()
          Returns the new end offset
 long getNewStartOffset()
          Returns new start offset
 long getOriginalEndOffset()
          Returns the old end offset
 long getOriginalStartOffset()
          Returns the old start offset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodePosition

public NodePosition(long osn,
                    long oen,
                    long nsn,
                    long nen)
constructor

Parameters:
osn - - old start offset
oen - - old end offset
nsn - - new start offset
nen - - new end offset
Method Detail

getOriginalStartOffset

public long getOriginalStartOffset()
Returns the old start offset

Returns:
a long value.

getOriginalEndOffset

public long getOriginalEndOffset()
Returns the old end offset

Returns:
a long value.

getNewStartOffset

public long getNewStartOffset()
Returns new start offset

Returns:
a long value.

getNewEndOffset

public long getNewEndOffset()
Returns the new end offset

Returns:
a long value.