gate.corpora
Class RepositioningInfo.PositionInfo

java.lang.Object
  |
  +--gate.corpora.RepositioningInfo.PositionInfo
All Implemented Interfaces:
Serializable
Enclosing class:
RepositioningInfo

public class RepositioningInfo.PositionInfo
extends Object
implements Serializable

Just information keeper inner class. No significant functionality.

See Also:
Serialized Form

Constructor Summary
RepositioningInfo.PositionInfo(long orig, long origLen, long curr, long currLen)
          The only constructor.
 
Method Summary
 long getCurrentLength()
          Length of peace of text in the extracted content
 long getCurrentPosition()
          Position in the extracted (and probably changed) content
 long getOriginalLength()
          Length of peace of text in the original content
 long getOriginalPosition()
          Position in the original content
 String toString()
          For debug purposes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepositioningInfo.PositionInfo

public RepositioningInfo.PositionInfo(long orig,
                                      long origLen,
                                      long curr,
                                      long currLen)
The only constructor. We haven't set methods for data members.
Method Detail

getCurrentPosition

public long getCurrentPosition()
Position in the extracted (and probably changed) content

getOriginalPosition

public long getOriginalPosition()
Position in the original content

getOriginalLength

public long getOriginalLength()
Length of peace of text in the original content

getCurrentLength

public long getCurrentLength()
Length of peace of text in the extracted content

toString

public String toString()
For debug purposes
Overrides:
toString in class Object