Package org.apache.uima.cas
Interface Marker
-
- All Known Implementing Classes:
MarkerImpl
public interface MarkerAn object obtained from theCASthat is used to query when FSs were created or modified with respect to the marker.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisModified(FeatureStructure fs)Test if a FeatureStructure in a CAS represented by thisMarkerexisted before the mark was set, and has been modified.booleanisNew(FeatureStructure fs)booleanisValid()A Marker becomes invalid when theCASfrom which it was obtained is reset.
-
-
-
Method Detail
-
isNew
boolean isNew(FeatureStructure fs)
- Parameters:
fs- -- Returns:
- true if a
FeatureStructurewas created after the mark represented by thisMarkerobject.
-
isModified
boolean isModified(FeatureStructure fs)
Test if a FeatureStructure in a CAS represented by thisMarkerexisted before the mark was set, and has been modified. isModified(fs) == true implies that isNew(fs) == false.- Parameters:
fs- -- Returns:
- true if a
FeatureStructurethat existed prior to the mark being set has been modified
-
isValid
boolean isValid()
A Marker becomes invalid when theCASfrom which it was obtained is reset.- Returns:
- true if the Marker is still valid.
-
-