public class Capability_impl extends MetaDataObject_impl implements Capability
CapabilityMetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.SerializerserialContextEMPTY_CAPABILITIES| Constructor and Description | 
|---|
| Capability_impl() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addInputFeature(String aFeatureName)A convenience method that adds an input Feature to this Capability. | 
| void | addInputSofa(String aSofaName)A convenience method that adds an input Sofa name to this Capability. | 
| void | addInputType(String aTypeName,
            boolean aAllAnnotatorFeatures)A convenience method that adds an input Type to this Capability. | 
| void | addOutputFeature(String aFeatureName)A convenience method that adds an output Feature to this Capability. | 
| void | addOutputSofa(String aSofaName)A convenience method that adds an output Sofa name to this Capability. | 
| void | addOutputType(String aTypeName,
             boolean aAllAnnotatorFeatures)A convenience method that adds an output Type to this Capability. | 
| void | addSupportedLanguage(String aLanguage)A convenience method that adds a supported language to this Capability. | 
| String | getDescription()Gets the description of this Capability. | 
| TypeOrFeature[] | getInputs()Gets the inputs of this Capability. | 
| String[] | getInputSofas()Gets the inputs Sofa names of this Capability. | 
| String[] | getLanguagesSupported()A convenience method that analyzes the preconditions of this  Capabilityand
 returns the ISO language identifiers that the Resource supports. | 
| String[] | getMimeTypesSupported()A convenience method that analyzes the preconditions of this  Capabilityand
 returns the MIME types that the Resource can take as input. | 
| TypeOrFeature[] | getOutputs()Gets the outputs of this Capability. | 
| String[] | getOutputSofas()Gets the output Sofa names of this Capability. | 
| Precondition[] | getPreconditions()Retrieves the preconditions that must be satisfied in order for the Resource to begin
 processing. | 
| protected XmlizationInfo | getXmlizationInfo()To be implemented by subclasses to return information describing how to represent this object
 in XML. | 
| void | removeSupportedLanguage(String aLanguage)A convenience method that removes a supported language from this Capability. | 
| void | setDescription(String aDescription)Sets the description of this Capability. | 
| void | setInputs(TypeOrFeature[] aInputs)Sets the inputs of this Capability. | 
| void | setInputSofas(String[] aInputSofaNames)Sets the input Sofa names. | 
| void | setLanguagesSupported(String[] aLanguageIDs)A convenience method that sets the languages that this Resource supports. | 
| void | setMimeTypesSupported(String[] aMimeTypes)A convenience method that sets the MIME types that this Resource can take as input. | 
| void | setOutputs(TypeOrFeature[] aOutputs)Sets the outputs of this Capability. | 
| void | setOutputSofas(String[] aOutputSofaNames)Sets the output Sofa names of this capability | 
| void | setPreconditions(Precondition[] aPreconditions)Sets the  Preconditions of thisCapability. | 
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, writePropertyAsElementfinalize, getClass, notify, notifyAll, wait, wait, waitclone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlbuildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXMLpublic String getDescription()
CapabilitygetDescription in interface Capabilitypublic void setDescription(String aDescription)
CapabilitysetDescription in interface CapabilityaDescription - aDescription the description of this Capability.public TypeOrFeature[] getInputs()
CapabilitygetInputs in interface CapabilityCapability.getInputs()public TypeOrFeature[] getOutputs()
CapabilitygetOutputs in interface CapabilityCapability.getOutputs()public Precondition[] getPreconditions()
CapabilitygetPreconditions in interface CapabilityPreconditions.Capability.getPreconditions()public String[] getLanguagesSupported()
CapabilityCapability and
 returns the ISO language identifiers that the Resource supports. This is only meaningful when
 analyzing text documents.getLanguagesSupported in interface CapabilityCapability.getLanguagesSupported()public String[] getMimeTypesSupported()
CapabilityCapability and
 returns the MIME types that the Resource can take as input.getMimeTypesSupported in interface CapabilityCapability.getMimeTypesSupported()public void setInputs(TypeOrFeature[] aInputs)
CapabilitysetInputs in interface CapabilityaInputs - an array of references to Types or Features in this Resource's TypeSystem.Capability.setInputs(TypeOrFeature[])public void setOutputs(TypeOrFeature[] aOutputs)
CapabilitysetOutputs in interface CapabilityaOutputs - an array of references to Types or Features in this Resource's TypeSystem.Capability.setOutputs(TypeOrFeature[])public void setPreconditions(Precondition[] aPreconditions)
CapabilityPreconditions of this Capability.setPreconditions in interface CapabilityaPreconditions - an array of Precondition objectsCapability.setPreconditions(Precondition[])public void setLanguagesSupported(String[] aLanguageIDs)
Capability
 Calling this method affects the preconditions of this Capability. All other
 language support preconditions will be removed, but non-language related preconditions will be
 unaffected.
setLanguagesSupported in interface CapabilityaLanguageIDs - an array of ISO language identifiers. An empty array means that the Resource claims to
          be language-independent.Capability.setLanguagesSupported(String[])public void setMimeTypesSupported(String[] aMimeTypes)
Capability
 Calling this method affects the preconditions of this Capability. All other MIME
 type preconditions will be removed, but other preconditions will be unaffected.
setMimeTypesSupported in interface CapabilityaMimeTypes - an array of MIME types. This may be empty if the Resource does not declare MIME type
          preconditions.Capability.setMimeTypesSupported(java.lang.String[])public void addInputType(String aTypeName, boolean aAllAnnotatorFeatures)
CapabilityaddInputType in interface CapabilityaTypeName - the fully qualified type nameaAllAnnotatorFeatures - if true, indicates that this Capability requires as input all features of this type
          that are specified in the same AnalysisEngine descriptor. If false, features must be
          explicitly declared by calling Capability.addInputFeature(String).Capability.addInputType(java.lang.String, boolean)public void addInputFeature(String aFeatureName)
CapabilityaddInputFeature in interface CapabilityaFeatureName - the fully qualified feature nameCapability.addInputFeature(java.lang.String)public void addOutputType(String aTypeName, boolean aAllAnnotatorFeatures)
CapabilityaddOutputType in interface CapabilityaTypeName - the fully qualified type nameaAllAnnotatorFeatures - if true, indicates that this Capability declares as output all features of this type
          that are specified in the same AnalysisEngine descriptor. If false, features must be
          explicitly declared by calling Capability.addOutputFeature(String).Capability.addOutputType(java.lang.String, boolean)public void addOutputFeature(String aFeatureName)
CapabilityaddOutputFeature in interface CapabilityaFeatureName - the fully qualified feature nameCapability.addOutputFeature(java.lang.String)public void addSupportedLanguage(String aLanguage)
CapabilityaddSupportedLanguage in interface CapabilityaLanguage - the ISO language identifierCapability.addSupportedLanguage(java.lang.String)public void removeSupportedLanguage(String aLanguage)
CapabilityremoveSupportedLanguage in interface CapabilityaLanguage - the ISO language identifierpublic String[] getInputSofas()
CapabilitygetInputSofas in interface Capabilitypublic String[] getOutputSofas()
CapabilitygetOutputSofas in interface Capabilitypublic void setInputSofas(String[] aInputSofaNames)
CapabilitysetInputSofas in interface CapabilityaInputSofaNames - an array of strings containing SofA namespublic void setOutputSofas(String[] aOutputSofaNames)
CapabilitysetOutputSofas in interface CapabilityaOutputSofaNames - an array of strings containing SoFA namepublic void addInputSofa(String aSofaName)
CapabilityaddInputSofa in interface CapabilityaSofaName - the sofa to add to the inputspublic void addOutputSofa(String aSofaName)
CapabilityaddOutputSofa in interface CapabilityaSofaName - the sofa to add as an outputprotected XmlizationInfo getXmlizationInfo()
MetaDataObject_implgetXmlizationInfo in class MetaDataObject_implCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.