public class MimeTypePrecondition_impl extends SimplePrecondition_impl implements MimeTypePrecondition
MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer
serialContext
ELEMENT_OF, EQUAL, LANGUAGE_SUBSUMED, PRECONDITION_TYPE
Constructor and Description |
---|
MimeTypePrecondition_impl() |
Modifier and Type | Method and Description |
---|---|
String[] |
getMimeTypes()
Gets the MIME types that satisfy this precondition.
|
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 |
setMetaDataKeyName(String aKey)
This method throws UNSUPPORTED_METHOD
|
void |
setMimeTypes(String[] aMimeTypes)
Sets the MIME types 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, setDefault
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, writePropertyAsElement
finalize, getClass, notify, notifyAll, wait, wait, wait
getComparisonValue, getDefault, getFeatureName, getFsIndexName, getFsMatchConstraint, getPreconditionType, getPredicate, setDefault
evaluate
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
public String[] getMimeTypes()
MimeTypePrecondition
Note that if the document's MIME Type is unknown, the value of the
default
property determines whether this precondition is
satisfied.
getMimeTypes
in interface MimeTypePrecondition
MimeTypePrecondition.getMimeTypes()
public void setMimeTypes(String[] aMimeTypes)
MimeTypePrecondition
Note that if the document's MIME Type is unknown, the value of the
default
property determines whether this precondition is
satisfied.
setMimeTypes
in interface MimeTypePrecondition
aMimeTypes
- the MIME Types that satisfy this preconditionMimeTypePrecondition.setMimeTypes(java.lang.String[])
public void setComparisonValue(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(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(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 setMetaDataKeyName(String aKey)
aKey
- -UIMA_UnsupportedOperationException
- -public void setPredicate(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)
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.