public class LanguagePrecondition_impl extends SimplePrecondition_impl implements LanguagePrecondition
MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.SerializerserialContextELEMENT_OF, EQUAL, LANGUAGE_SUBSUMED, PRECONDITION_TYPE| Constructor and Description |
|---|
LanguagePrecondition_impl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object aObject)
Determines if this object is equal to another.
|
String[] |
getLanguages()
Gets the languages that satisfy this precondition.
|
int |
hashCode()
Gets the hash code for this object.
|
void |
setComparisonValue(Object aValue)
Sets the literal value to which features' values will be compared.
|
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 |
setLanguages(String[] aLanguages)
Sets the languages that satisfy this precondition.
|
void |
setPredicate(String aPredicate)
Sets the predicate used to compare the test value to the comparison value.
|
evaluate, getComparisonValue, getDefault, getFeatureName, getFsIndexName, getFsMatchConstraint, getPreconditionType, getPredicate, getXmlizationInfo, isValidPredicateName, setDefaultbuildFromXMLElement, buildFromXMLElement, clone, getAdditionalAttributes, getAttributeClass, getAttributeValue, getInfoset, getMatchingNode, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSerialContext, getSourceUrl, getSourceUrlString, getWrapperClass, getXMLAttributes, 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, waitgetComparisonValue, getDefault, getFeatureName, getFsIndexName, getFsMatchConstraint, getPreconditionType, getPredicate, setDefaultevaluateclone, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlbuildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXMLpublic String[] getLanguages()
LanguagePrecondition
Note that if the document's language is unknown, the value of the
default property determines whether this precondition is
satisfied.
getLanguages in interface LanguagePreconditionLanguagePrecondition.getLanguages()public void setLanguages(String[] aLanguages)
LanguagePrecondition
Note that if the document's language is unknown, the value of the
default property determines whether this precondition is
satisfied.
The ISO language identifiers are cannonicalized by lower-casing them and replacing
underscores with hyphens. Also, if any of the identifiers are x-unspecified, the array
is replaced with an array of just one element: x-unspecified, since all languages are defined
to match that one.
setLanguages in interface LanguagePreconditionaLanguages - the languages that satisfy this preconditionLanguagePrecondition.setLanguages(java.lang.String[])public void setComparisonValue(Object aValue)
SimplePreconditionsetComparisonValue in interface SimplePreconditionsetComparisonValue in class SimplePrecondition_implaValue - the comparison value, which must be a String, Integer, Float, Boolean, or an array of
one of those four types.SimplePrecondition.setComparisonValue(java.lang.Object)public void setFeatureName(String aFeatureName)
SimplePreconditionsetFeatureName in interface SimplePreconditionsetFeatureName in class SimplePrecondition_implaFeatureName - the feature name, null if noneSimplePrecondition.setFeatureName(java.lang.String)public void setFsIndexName(String aIndexName)
SimplePreconditionsetFsIndexName in interface SimplePreconditionsetFsIndexName in class SimplePrecondition_implaIndexName - 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 SimplePreconditionsetFsMatchConstraint in class SimplePrecondition_implaConstraint - the FS match constraint, null if noneSimplePrecondition.setFsMatchConstraint(org.apache.uima.cas.FSMatchConstraint)public void setPredicate(String aPredicate)
SimplePreconditionsetPredicate in interface SimplePreconditionsetPredicate in class SimplePrecondition_implaPredicate - a String that identifies the predicate used. This must match one of the constants
defined on this interface.SimplePrecondition.setPredicate(java.lang.String)public boolean equals(Object aObject)
MetaDataObject_implequals in interface MetaDataObjectequals in class MetaDataObject_implaObject - object with which to compare this objectaObjpublic int hashCode()
MetaDataObject_implx and
y must be equal if x.equals(y) returns true;hashCode in class MetaDataObject_implCopyright © 2006–2021 The Apache Software Foundation. All rights reserved.