Class MimeTypePrecondition_impl
java.lang.Object
org.apache.uima.resource.metadata.impl.MetaDataObject_impl
org.apache.uima.resource.metadata.impl.SimplePrecondition_impl
org.apache.uima.resource.metadata.impl.MimeTypePrecondition_impl
- All Implemented Interfaces:
Serializable,Cloneable,MetaDataObject,MimeTypePrecondition,Precondition,SimplePrecondition,XMLizable
public class MimeTypePrecondition_impl
extends SimplePrecondition_impl
implements MimeTypePrecondition
Precondition that tests the MIME type of the Entity's content.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer -
Field Summary
Fields inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
serialContextFields inherited from interface org.apache.uima.resource.metadata.SimplePrecondition
ELEMENT_OF, EQUAL, LANGUAGE_SUBSUMED, PRECONDITION_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Gets the MIME types that satisfy this precondition.voidsetComparisonValue(Object aValue) Sets the literal value to which features' values will be compared.voidsetFeatureName(String aFeatureName) Sets the name of the feature to be tested.voidsetFsIndexName(String aIndexName) Sets the name of the FeatureStructure index containing FeatureStructures to be tested by this precondition.voidsetFsMatchConstraint(FSMatchConstraint aConstraint) Sets the FSMatchConstraint that determines which CAS feature structures will be tested by this precondition.voidsetMetaDataKeyName(String aKey) This method throws UNSUPPORTED_METHODvoidsetMimeTypes(String[] aMimeTypes) Sets the MIME types that satisfy this precondition.voidsetPredicate(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, setDefaultMethods inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
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, writePropertyAsElementMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.uima.resource.metadata.MetaDataObject
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlMethods inherited from interface org.apache.uima.resource.metadata.Precondition
evaluateMethods inherited from interface org.apache.uima.resource.metadata.SimplePrecondition
getComparisonValue, getDefault, getFeatureName, getFsIndexName, getFsMatchConstraint, getPreconditionType, getPredicate, setDefaultMethods inherited from interface org.apache.uima.util.XMLizable
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
-
Constructor Details
-
MimeTypePrecondition_impl
public MimeTypePrecondition_impl()
-
-
Method Details
-
getMimeTypes
Description copied from interface:MimeTypePreconditionGets the MIME types that satisfy this precondition.Note that if the document's MIME Type is unknown, the value of the
defaultproperty determines whether this precondition is satisfied.- Specified by:
getMimeTypesin interfaceMimeTypePrecondition- Returns:
- the MIME Types that satisfy this precondition
- See Also:
-
setMimeTypes
Description copied from interface:MimeTypePreconditionSets the MIME types that satisfy this precondition.Note that if the document's MIME Type is unknown, the value of the
defaultproperty determines whether this precondition is satisfied.- Specified by:
setMimeTypesin interfaceMimeTypePrecondition- Parameters:
aMimeTypes- the MIME Types that satisfy this precondition- See Also:
-
setComparisonValue
Description copied from interface:SimplePreconditionSets the literal value to which features' values will be compared.- Specified by:
setComparisonValuein interfaceSimplePrecondition- Overrides:
setComparisonValuein classSimplePrecondition_impl- Parameters:
aValue- the comparison value, which must be a String, Integer, Float, Boolean, or an array of one of those four types.- See Also:
-
setFeatureName
Description copied from interface:SimplePreconditionSets the name of the feature to be tested.- Specified by:
setFeatureNamein interfaceSimplePrecondition- Overrides:
setFeatureNamein classSimplePrecondition_impl- Parameters:
aFeatureName- the feature name,nullif none- See Also:
-
setFsIndexName
Description copied from interface:SimplePreconditionSets the name of the FeatureStructure index containing FeatureStructures to be tested by this precondition.- Specified by:
setFsIndexNamein interfaceSimplePrecondition- Overrides:
setFsIndexNamein classSimplePrecondition_impl- Parameters:
aIndexName- the name of the FS index,nullif the default annotation index should be used- See Also:
-
setFsMatchConstraint
Description copied from interface:SimplePreconditionSets the FSMatchConstraint that determines which CAS feature structures will be tested by this precondition.- Specified by:
setFsMatchConstraintin interfaceSimplePrecondition- Overrides:
setFsMatchConstraintin classSimplePrecondition_impl- Parameters:
aConstraint- the FS match constraint,nullif none- See Also:
-
setMetaDataKeyName
This method throws UNSUPPORTED_METHOD- Parameters:
aKey- -- Throws:
UIMA_UnsupportedOperationException- -
-
setPredicate
Description copied from interface:SimplePreconditionSets the predicate used to compare the test value to the comparison value.- Specified by:
setPredicatein interfaceSimplePrecondition- Overrides:
setPredicatein classSimplePrecondition_impl- Parameters:
aPredicate- a String that identifies the predicate used. This must match one of the constants defined on this interface.- See Also:
-