Class Import_impl
java.lang.Object
org.apache.uima.resource.metadata.impl.MetaDataObject_impl
org.apache.uima.resource.metadata.impl.Import_impl
- All Implemented Interfaces:
Serializable
,Cloneable
,Import
,MetaDataObject
,XMLizable
- 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
serialContext
Fields inherited from interface org.apache.uima.resource.metadata.Import
EMPTY_IMPORTS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildFromXMLElement
(Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions) Overridden to provide custom XML representation.findAbsoluteUrl
(ResourceManager aResourceManager) Computes the absolute URL for this import, using the relative location or name, whichever is specified by this import object.Gets the location of this import's target.getName()
Gets the name of this import's target.protected XmlizationInfo
To be implemented by subclasses to return information describing how to represent this object in XML.void
setLocation
(String aUri) Sets the location of this import's target.void
Sets the name of this import's target.void
void
toXML
(ContentHandler aContentHandler, boolean aWriteDefaultNamespaceAttribute) Overridden to provide custom XML representation.Methods inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
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, valueIsNullOrEmptyArray, writeArrayPropertyAsElement, writeMapPropertyToXml, writePropertyAsElement
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.uima.resource.metadata.MetaDataObject
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
Methods inherited from interface org.apache.uima.util.XMLizable
buildFromXMLElement, toXML, toXML, toXML
-
Field Details
-
LOG_RESOURCE_BUNDLE
resource bundle for log messages- See Also:
-
-
Constructor Details
-
Import_impl
public Import_impl()
-
-
Method Details
-
getName
Description copied from interface:Import
Gets the name of this import's target. -
setName
Description copied from interface:Import
Sets the name of this import's target. -
getLocation
Description copied from interface:Import
Gets the location of this import's target.- Specified by:
getLocation
in interfaceImport
- Returns:
- a URI specifying the location of this import's target.
-
setLocation
Description copied from interface:Import
Sets the location of this import's target.- Specified by:
setLocation
in interfaceImport
- Parameters:
aUri
- a URI specifying the location of this import's target.
-
setSuffix
-
findAbsoluteUrl
Description copied from interface:Import
Computes the absolute URL for this import, using the relative location or name, whichever is specified by this import object.- Specified by:
findAbsoluteUrl
in interfaceImport
- Parameters:
aResourceManager
- resource manager to use to do name lookups- Returns:
- the absolute URL for this import
- Throws:
InvalidXMLException
- if the import could not be resolved
-
buildFromXMLElement
public void buildFromXMLElement(Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions) throws InvalidXMLException Overridden to provide custom XML representation.- Specified by:
buildFromXMLElement
in interfaceXMLizable
- Overrides:
buildFromXMLElement
in classMetaDataObject_impl
- Parameters:
aElement
- the XML element that represents this object.aParser
- a reference to the UIMAXMLParser
. TheXMLParser.buildObject(Element)
method can be used to construct sub-objects.aOptions
- option settings- Throws:
InvalidXMLException
- if the input XML element does not specify a valid object- See Also:
-
toXML
public void toXML(ContentHandler aContentHandler, boolean aWriteDefaultNamespaceAttribute) throws SAXException Overridden to provide custom XML representation.- Specified by:
toXML
in interfaceXMLizable
- Overrides:
toXML
in classMetaDataObject_impl
- Parameters:
aContentHandler
- the content handler to which this object will write events that describe its XML representation.aWriteDefaultNamespaceAttribute
- whether the namespace of this element should be written as the default namespace. This should be done only for the root element, and it defaults to false.- Throws:
SAXException
- pass thru- See Also:
-
getXmlizationInfo
Description copied from class:MetaDataObject_impl
To be implemented by subclasses to return information describing how to represent this object in XML.- Specified by:
getXmlizationInfo
in classMetaDataObject_impl
- Returns:
- information defining this object's XML representation
- See Also:
-