org.apache.uima.resource.metadata
Interface MimeTypePrecondition
- All Superinterfaces:
- java.lang.Cloneable, MetaDataObject, Precondition, java.io.Serializable, SimplePrecondition, XMLizable
- All Known Implementing Classes:
- MimeTypePrecondition_impl
public interface MimeTypePrecondition
- extends SimplePrecondition
A precondition on the MIME Type of the entity. This interface is a kind of
SimplePrecondition
to be used as a convenience.
Method Summary |
java.lang.String[] |
getMimeTypes()
Gets the MIME types that satisfy this precondition. |
void |
setMimeTypes(java.lang.String[] aMimeTypes)
Sets the MIME types that satisfy this precondition. |
Methods inherited from interface org.apache.uima.resource.metadata.SimplePrecondition |
getComparisonValue, getDefault, getFeatureName, getFsIndexName, getFsMatchConstraint, getPreconditionType, getPredicate, setComparisonValue, setDefault, setFeatureName, setFsIndexName, setFsMatchConstraint, setPredicate |
getMimeTypes
java.lang.String[] getMimeTypes()
- Gets the MIME types that satisfy this precondition.
Note that if the document's MIME Type is unknown, the value of the
default
property determines whether this precondition is
satisfied.
- Returns:
- the MIME Types that satisfy this precondition
setMimeTypes
void setMimeTypes(java.lang.String[] aMimeTypes)
- Sets the MIME types that satisfy this precondition.
Note that if the document's MIME Type is unknown, the value of the
default
property determines whether this precondition is
satisfied.
- Parameters:
aMimeTypes
- the MIME Types that satisfy this precondition
- Throws:
UIMA_UnsupportedOperationException
- if this MetaDataObject
is not modifiable.
Copyright © 2012. All Rights Reserved.