|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.resource.metadata.impl.MetaDataObject_impl
org.apache.uima.resource.metadata.impl.SimplePrecondition_impl
org.apache.uima.resource.metadata.impl.LanguagePrecondition_impl
public class LanguagePrecondition_impl
Precondition that tests language of the document.
Field Summary |
---|
Fields inherited from interface org.apache.uima.resource.metadata.SimplePrecondition |
---|
ELEMENT_OF, EQUAL, LANGUAGE_SUBSUMED, PRECONDITION_TYPE |
Constructor Summary | |
---|---|
LanguagePrecondition_impl()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object aObject)
Determines if this object is equal to another. |
java.lang.String[] |
getLanguages()
Gets the languages that satisfy this precondition. |
int |
hashCode()
Gets the hash code for this object. |
void |
setComparisonValue(java.lang.Object aValue)
Sets the literal value to which features' values will be compared. |
void |
setFeatureName(java.lang.String aFeatureName)
Sets the name of the feature to be tested. |
void |
setFsIndexName(java.lang.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(java.lang.String[] aLanguages)
Sets the languages that satisfy this precondition. |
void |
setPredicate(java.lang.String aPredicate)
Sets the predicate used to compare the test value to the comparison value. |
Methods inherited from class org.apache.uima.resource.metadata.impl.SimplePrecondition_impl |
---|
evaluate, getComparisonValue, getDefault, getFeatureName, getFsIndexName, getFsMatchConstraint, getPreconditionType, getPredicate, getXmlizationInfo, isValidPredicateName, setDefault |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.uima.resource.metadata.SimplePrecondition |
---|
getComparisonValue, getDefault, getFeatureName, getFsIndexName, getFsMatchConstraint, getPreconditionType, getPredicate, setDefault |
Methods inherited from interface org.apache.uima.resource.metadata.Precondition |
---|
evaluate |
Methods inherited from interface org.apache.uima.resource.metadata.MetaDataObject |
---|
clone, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl |
Methods inherited from interface org.apache.uima.util.XMLizable |
---|
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML |
Constructor Detail |
---|
public LanguagePrecondition_impl()
Method Detail |
---|
public java.lang.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 LanguagePrecondition
LanguagePrecondition.getLanguages()
public void setLanguages(java.lang.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 LanguagePrecondition
aLanguages
- the languages that satisfy this preconditionLanguagePrecondition.setLanguages(java.lang.String[])
public void setComparisonValue(java.lang.Object aValue)
SimplePrecondition
setComparisonValue
in interface SimplePrecondition
setComparisonValue
in class SimplePrecondition_impl
aValue
- 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(java.lang.String aFeatureName)
SimplePrecondition
setFeatureName
in interface SimplePrecondition
setFeatureName
in class SimplePrecondition_impl
aFeatureName
- the feature name, null
if noneSimplePrecondition.setFeatureName(java.lang.String)
public void setFsIndexName(java.lang.String aIndexName)
SimplePrecondition
setFsIndexName
in interface SimplePrecondition
setFsIndexName
in class SimplePrecondition_impl
aIndexName
- the name of the FS index, null
if the default annotation index should
be usedSimplePrecondition.setFsIndexName(java.lang.String)
public void setFsMatchConstraint(FSMatchConstraint aConstraint)
SimplePrecondition
setFsMatchConstraint
in interface SimplePrecondition
setFsMatchConstraint
in class SimplePrecondition_impl
aConstraint
- the FS match constraint, null
if noneSimplePrecondition.setFsMatchConstraint(org.apache.uima.cas.FSMatchConstraint)
public void setPredicate(java.lang.String aPredicate)
SimplePrecondition
setPredicate
in interface SimplePrecondition
setPredicate
in class SimplePrecondition_impl
aPredicate
- 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(java.lang.Object aObject)
MetaDataObject_impl
equals
in interface MetaDataObject
equals
in class MetaDataObject_impl
aObject
- object with which to compare this object
aObj
public int hashCode()
MetaDataObject_impl
x
and
y must be equal if x.equals(y)
returns true;
hashCode
in class MetaDataObject_impl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |