Package org.apache.uima.resource.impl
Class ExternalResourceDescription_impl
java.lang.Object
org.apache.uima.resource.metadata.impl.MetaDataObject_impl
org.apache.uima.resource.impl.ExternalResourceDescription_impl
- All Implemented Interfaces:
Serializable,Cloneable,ExternalResourceDescription,MetaDataObject,XMLizable
public class ExternalResourceDescription_impl
extends MetaDataObject_impl
implements ExternalResourceDescription
Reference implementation of
AnalysisEngineDescription. Note that this class has a
slightly nonstandard XML representation because the "key" property is represented in XML by an
attribute rather than a child element.
9/2013: toXML and buildFromXMLElement not overridden... Therefore, we override the toXML() method
and the buildFromXMLElement(Element,XMLParser) method.- 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.ExternalResourceDescription
EMPTY_EXTERNAL_RESORUCE_DESCRIPTIONS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the textual description of the resource.Retrieves the name of the Java class to be instantiated from the resource data.getName()Retrieves the name by which the resource is identified.Retrieves theResourceSpecifierthat describes how to create the resource.protected XmlizationInfoTo be implemented by subclasses to return information describing how to represent this object in XML.voidsetDescription(String aDescription) Retrieves the textual description of the resource.voidsetImplementationName(String aName) Sets the name of the Java class to be instantiated from the resource data.voidSets the name by which the resource is identified.voidsetResourceSpecifier(ResourceSpecifier aSpecifier) Sets theResourceSpecifierthat describes how to create the resource.Methods 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.util.XMLizable
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
-
Constructor Details
-
ExternalResourceDescription_impl
public ExternalResourceDescription_impl()
-
-
Method Details
-
getName
Description copied from interface:ExternalResourceDescriptionRetrieves the name by which the resource is identified.- Specified by:
getNamein interfaceExternalResourceDescription- Returns:
- the name of this resource.
- See Also:
-
getResourceSpecifier
Description copied from interface:ExternalResourceDescriptionRetrieves theResourceSpecifierthat describes how to create the resource.- Specified by:
getResourceSpecifierin interfaceExternalResourceDescription- Returns:
- the
ResourceSpecifierfor this external resource - See Also:
-
getImplementationName
Description copied from interface:ExternalResourceDescriptionRetrieves the name of the Java class to be instantiated from the resource data. This must extendSharedResourceObjectas well as the interface specified byExternalResourceDependency.getInterfaceName().- Specified by:
getImplementationNamein interfaceExternalResourceDescription- Returns:
- the name of the Java class implementing the resource access
- See Also:
-
setName
Description copied from interface:ExternalResourceDescriptionSets the name by which the resource is identified.- Specified by:
setNamein interfaceExternalResourceDescription- Parameters:
aName- the name of this resource.- See Also:
-
setResourceSpecifier
Description copied from interface:ExternalResourceDescriptionSets theResourceSpecifierthat describes how to create the resource.- Specified by:
setResourceSpecifierin interfaceExternalResourceDescription- Parameters:
aSpecifier- theResourceSpecifierfor this external resource- See Also:
-
setImplementationName
Description copied from interface:ExternalResourceDescriptionSets the name of the Java class to be instantiated from the resource data. This must extendSharedResourceObjectas well as the interface specified byExternalResourceDependency.getInterfaceName().- Specified by:
setImplementationNamein interfaceExternalResourceDescription- Parameters:
aName- the name of the Java class implementing the resource access- See Also:
-
getDescription
Description copied from interface:ExternalResourceDescriptionRetrieves the textual description of the resource.- Specified by:
getDescriptionin interfaceExternalResourceDescription- Returns:
- the textual description of the resource.
- See Also:
-
setDescription
Description copied from interface:ExternalResourceDescriptionRetrieves the textual description of the resource.- Specified by:
setDescriptionin interfaceExternalResourceDescription- Parameters:
aDescription- the textual description of the resource.- See Also:
-
getXmlizationInfo
Description copied from class:MetaDataObject_implTo be implemented by subclasses to return information describing how to represent this object in XML.- Specified by:
getXmlizationInfoin classMetaDataObject_impl- Returns:
- information defining this object's XML representation
-