public class ExternalResourceDescription_impl extends MetaDataObject_impl implements ExternalResourceDescription
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.MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer
serialContext
EMPTY_EXTERNAL_RESORUCE_DESCRIPTIONS
Constructor and Description |
---|
ExternalResourceDescription_impl() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Retrieves the textual description of the resource.
|
String |
getImplementationName()
Retrieves the name of the Java class to be instantiated from the resource data.
|
String |
getName()
Retrieves the name by which the resource is identified.
|
ResourceSpecifier |
getResourceSpecifier()
Retrieves the
ResourceSpecifier that describes how to create the resource. |
protected XmlizationInfo |
getXmlizationInfo()
To be implemented by subclasses to return information describing how to represent this object
in XML.
|
void |
setDescription(String aDescription)
Retrieves the textual description of the resource.
|
void |
setImplementationName(String aName)
Sets the name of the Java class to be instantiated from the resource data.
|
void |
setName(String aName)
Sets the name by which the resource is identified.
|
void |
setResourceSpecifier(ResourceSpecifier aSpecifier)
Sets the
ResourceSpecifier that describes how to create the resource. |
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
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
public String getName()
ExternalResourceDescription
getName
in interface ExternalResourceDescription
ExternalResourceDescription.getName()
public ResourceSpecifier getResourceSpecifier()
ExternalResourceDescription
ResourceSpecifier
that describes how to create the resource.getResourceSpecifier
in interface ExternalResourceDescription
ResourceSpecifier
for this external resourceExternalResourceDescription.getResourceSpecifier()
public String getImplementationName()
ExternalResourceDescription
SharedResourceObject
as well as the interface specified
by ExternalResourceDependency.getInterfaceName()
.getImplementationName
in interface ExternalResourceDescription
ExternalResourceDescription.getImplementationName()
public void setName(String aName)
ExternalResourceDescription
setName
in interface ExternalResourceDescription
aName
- the name of this resource.ExternalResourceDescription.setName(String)
public void setResourceSpecifier(ResourceSpecifier aSpecifier)
ExternalResourceDescription
ResourceSpecifier
that describes how to create the resource.setResourceSpecifier
in interface ExternalResourceDescription
aSpecifier
- the ResourceSpecifier
for this external resourceExternalResourceDescription.setResourceSpecifier(ResourceSpecifier)
public void setImplementationName(String aName)
ExternalResourceDescription
SharedResourceObject
as well as the interface specified by
ExternalResourceDependency.getInterfaceName()
.setImplementationName
in interface ExternalResourceDescription
aName
- the name of the Java class implementing the resource accessExternalResourceDescription.setImplementationName(String)
public String getDescription()
ExternalResourceDescription
getDescription
in interface ExternalResourceDescription
ExternalResourceDescription.getDescription()
public void setDescription(String aDescription)
ExternalResourceDescription
setDescription
in interface ExternalResourceDescription
aDescription
- the textual description of the resource.ExternalResourceDescription.setDescription(java.lang.String)
protected XmlizationInfo getXmlizationInfo()
MetaDataObject_impl
getXmlizationInfo
in class MetaDataObject_impl
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.