public interface Precondition extends MetaDataObject
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.
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(CAS aCAS)
Determines if this precondition is satisfied by a CAS.
|
String |
getPreconditionType()
Gets the type of this precondition.
|
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
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 preconditionCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.