|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Precondition
A Precondition
of a Resource is a condition that an Entity and/or its analysis in
the CAS
must satisfy before that Entity can be processed by the Resource.
Currently the framework does not fully support Preconditions. Only the
LanguagePrecondition
subinterface is used.
As with all MetaDataObject
s, a Precondition
may or may not be modifiable.
An application can find out by calling the MetaDataObject.isModifiable()
method.
Method Summary | |
---|---|
boolean |
evaluate(CAS aCAS)
Determines if this precondition is satisfied by a CAS. |
String |
getPreconditionType()
Gets the type of this precondition. |
Methods inherited from interface org.apache.uima.resource.metadata.MetaDataObject |
---|
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl |
Methods inherited from interface org.apache.uima.util.XMLizable |
---|
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML |
Method Detail |
---|
String getPreconditionType()
Precondition
has its
own standard type identifier String. These identifier Strings are used instead of Java class
names in order to ease portability of metadata to other languages.
boolean evaluate(CAS aCAS)
aCAS
- the CAS against which to evaluate this precondition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |