org.apache.uima.cas.impl
Class MarkerImpl

java.lang.Object
  extended by org.apache.uima.cas.impl.MarkerImpl
All Implemented Interfaces:
Marker

public class MarkerImpl
extends java.lang.Object
implements Marker

A MarkerImpl holds a high-water "mark" in the CAS, for all views. Typically, one is obtained via the createMarker call on a CAS. Currently only one marker is used per CAS. The Marker enables testing on each CAS update if the update is "below" or "above" the marker - this is used for implementing delta serialization, in which only the changed data is sent.


Field Summary
protected  boolean isValid
           
protected  int nextByteHeapAddr
           
protected  int nextFSId
           
protected  int nextLongHeapAddr
           
protected  int nextShortHeapAddr
           
protected  int nextStringHeapAddr
           
 
Method Summary
 boolean isModified(FeatureStructure fs)
          Returns true if a FeatureStructure that existed prior to the mark represented by this Markere is modified.
 boolean isNew(FeatureStructure fs)
          Returns true if a FeatureStructure was created after the mark represented by this Marker object.
 boolean isValid()
          Return true if the Marker is still valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nextFSId

protected int nextFSId

nextStringHeapAddr

protected int nextStringHeapAddr

nextByteHeapAddr

protected int nextByteHeapAddr

nextShortHeapAddr

protected int nextShortHeapAddr

nextLongHeapAddr

protected int nextLongHeapAddr

isValid

protected boolean isValid
Method Detail

isNew

public boolean isNew(FeatureStructure fs)
Description copied from interface: Marker
Returns true if a FeatureStructure was created after the mark represented by this Marker object.

Specified by:
isNew in interface Marker
Returns:

isModified

public boolean isModified(FeatureStructure fs)
Description copied from interface: Marker
Returns true if a FeatureStructure that existed prior to the mark represented by this Markere is modified.

Specified by:
isModified in interface Marker
Returns:
boolean

isValid

public boolean isValid()
Description copied from interface: Marker
Return true if the Marker is still valid. A Marker becomes invalid when the CAS from which it was obtained is reset.

Specified by:
isValid in interface Marker
Returns:


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.