public class SimplePrecondition_impl extends MetaDataObject_impl implements SimplePrecondition
SimplePrecondition.MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.SerializerserialContextELEMENT_OF, EQUAL, LANGUAGE_SUBSUMED, PRECONDITION_TYPE| Constructor and Description |
|---|
SimplePrecondition_impl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(CAS aCAS)
Determines if this precondition is satisfied by a CAS.
|
Object |
getComparisonValue()
Retrieves the literal value to which features' values will be compared.
|
boolean |
getDefault()
Retrieves the default value for this precondition.
|
String |
getFeatureName()
Gets the name of the feature to be tested.
|
String |
getFsIndexName()
Retrieves the name of the FeatureStructure index containing FeatureStructures to be tested by
this precondition.
|
FSMatchConstraint |
getFsMatchConstraint()
Retrieves the FSMatchConstraint that determines which CAS feature structures will be tested by
this precondition.
|
String |
getPreconditionType()
Gets the type of this precondition.
|
String |
getPredicate()
Retrieves the predicate used to compare the test value to the comparison value.
|
protected XmlizationInfo |
getXmlizationInfo()
To be implemented by subclasses to return information describing how to represent this object
in XML.
|
protected static boolean |
isValidPredicateName(Object aName)
Determines whether the given String is a valid name a predicate defined by this class.
|
void |
setComparisonValue(Object aValue)
Sets the literal value to which features' values will be compared.
|
void |
setDefault(boolean aDefault)
Sets the default value for this precondition.
|
void |
setFeatureName(String aFeatureName)
Sets the name of the feature to be tested.
|
void |
setFsIndexName(String aIndexName)
Sets the name of the FeatureStructure index containing FeatureStructures to be tested by this
precondition.
|
void |
setFsMatchConstraint(FSMatchConstraint aConstraint)
Sets the FSMatchConstraint that determines which CAS feature structures will be tested by this
precondition.
|
void |
setPredicate(String aPredicate)
Sets the predicate used to compare the test value to the comparison value.
|
buildFromXMLElement, buildFromXMLElement, clone, equals, getAdditionalAttributes, getAttributeClass, getAttributeValue, getInfoset, getMatchingNode, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSerialContext, getSourceUrl, getSourceUrlString, getWrapperClass, getXMLAttributes, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, resolveSettings, setAttributeValue, setInfoset, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, toXML, valueIsNullOrEmptyArray, writeArrayPropertyAsElement, writeMapPropertyToXml, writePropertyAsElementfinalize, getClass, notify, notifyAll, wait, wait, waitclone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlbuildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXMLpublic String getPreconditionType()
SimplePreconditionPrecondition 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.getPreconditionType in interface PreconditiongetPreconditionType in interface SimplePreconditionSimplePrecondition.PRECONDITION_TYPEPrecondition.getPreconditionType()public boolean getDefault()
SimplePreconditiongetDefault in interface SimplePreconditionSimplePrecondition.getDefault()public String getFeatureName()
SimplePreconditiongetFeatureName in interface SimplePreconditionnull if noneSimplePrecondition.getFeatureName()public String getFsIndexName()
SimplePreconditiongetFsIndexName in interface SimplePreconditionnull if the default annotation index should be
usedSimplePrecondition.getFsIndexName()public FSMatchConstraint getFsMatchConstraint()
SimplePreconditiongetFsMatchConstraint in interface SimplePreconditionnull if noneSimplePrecondition.getFsMatchConstraint()public void setDefault(boolean aDefault)
SimplePreconditionsetDefault in interface SimplePreconditionaDefault - the default valueSimplePrecondition.setDefault(boolean)public void setFeatureName(String aFeatureName)
SimplePreconditionsetFeatureName in interface SimplePreconditionaFeatureName - the feature name, null if noneSimplePrecondition.setFeatureName(java.lang.String)public void setFsIndexName(String aIndexName)
SimplePreconditionsetFsIndexName in interface SimplePreconditionaIndexName - the name of the FS index, null if the default annotation index should
be usedSimplePrecondition.setFsIndexName(java.lang.String)public void setFsMatchConstraint(FSMatchConstraint aConstraint)
SimplePreconditionsetFsMatchConstraint in interface SimplePreconditionaConstraint - the FS match constraint, null if noneSimplePrecondition.setFsMatchConstraint(org.apache.uima.cas.FSMatchConstraint)public boolean evaluate(CAS aCAS)
Preconditionevaluate in interface PreconditionaCAS - the CAS against which to evaluate this preconditionPrecondition.evaluate(org.apache.uima.cas.CAS)public Object getComparisonValue()
SimplePreconditiongetComparisonValue in interface SimplePreconditionSimplePrecondition.getComparisonValue()public void setComparisonValue(Object aValue)
SimplePreconditionsetComparisonValue in interface SimplePreconditionaValue - the comparison value, which must be a String, Integer, Float, Boolean, or an array of
one of those four types.SimplePrecondition.setComparisonValue(Object)public String getPredicate()
SimplePreconditiongetPredicate in interface SimplePreconditionSimplePrecondition.getPredicate()public void setPredicate(String aPredicate)
SimplePreconditionsetPredicate in interface SimplePreconditionaPredicate - a String that identifies the predicate used. This must match one of the constants
defined on this interface.SimplePrecondition.setPredicate(String)protected static boolean isValidPredicateName(Object aName)
setPredicate(String) method, and are defined
by constants on the SimplePrecondition interface.aName - an Object to testaName is a String that is a valid
predicate name.protected XmlizationInfo getXmlizationInfo()
MetaDataObject_implgetXmlizationInfo in class MetaDataObject_implCopyright © 2006–2021 The Apache Software Foundation. All rights reserved.