|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.creole.gazetteer.NodePosition
Title: NodePosition.java
Description: This class is used to store the information about the changes in the text and the addition or the substraction of the spaces. It is used by FlexibleGazetteer.
Field Summary | |
private long |
deductedSpaces
total deducted spaces due to change in the text before the start offset in the document |
private long |
newEndNode
The new end offset after the changes |
private long |
newStartNode
The new start offset after the changes |
private long |
oldEndNode
The original end offset before changes |
private long |
oldStartNode
The original start offset before changes |
Constructor Summary | |
NodePosition()
Constructor |
|
NodePosition(long osn,
long oen,
long nsn,
long nen,
long space)
constructor |
Method Summary | |
long |
getDeductedSpaces()
Returns the total deducted spaces |
long |
getNewEndNode()
Returns the new end offset |
long |
getNewStartNode()
Returns new start offset |
long |
getOldEndNode()
Returns the old end offset |
long |
getOldStartNode()
Returns the old start offset |
void |
setDeductedSpaces(long space)
Sets the deducted spaces |
void |
setNewEndNode(long node)
Sets the new end offset |
void |
setNewStartNode(long node)
sets the new start offset |
void |
setOldEndNode(long node)
Sets the old end offset |
void |
setOldStartNode(long node)
Sets the old start offset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private long oldStartNode
private long oldEndNode
private long newStartNode
private long newEndNode
private long deductedSpaces
Constructor Detail |
public NodePosition()
public NodePosition(long osn, long oen, long nsn, long nen, long space)
osn
- - old start offsetoen
- - old end offsetnsn
- - new start offsetnen
- - new end offsetspace
- - total deducted spaces due to change in the text before
the start offset in the documentMethod Detail |
public long getOldStartNode()
public long getOldEndNode()
public long getNewStartNode()
public long getNewEndNode()
public void setOldStartNode(long node)
node
- public void setOldEndNode(long node)
node
- public void setNewStartNode(long node)
node
- public void setNewEndNode(long node)
node
- public void setDeductedSpaces(long space)
space
- public long getDeductedSpaces()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |