org.apache.uima.resource.metadata.impl
public class Import_impl extends MetaDataObject_impl implements Import
Constructor and Description |
---|
Import_impl() |
Modifier and Type | Method and Description |
---|---|
void |
buildFromXMLElement(org.w3c.dom.Element aElement,
XMLParser aParser,
XMLParser.ParsingOptions aOptions)
Overridden to provide custom XML representation.
|
java.net.URL |
findAbsoluteUrl(ResourceManager aResourceManager)
Computes the absolute URL for this import, using the relative location or name, whichever is
specified by this import object.
|
java.lang.String |
getLocation()
Gets the location of this import's target.
|
java.lang.String |
getName()
Gets the name of this import's target.
|
protected XmlizationInfo |
getXmlizationInfo()
To be implemented by subclasses to return information describing how to represent this object
in XML.
|
void |
setLocation(java.lang.String aUri)
Sets the location of this import's target.
|
void |
setName(java.lang.String aName)
Sets the name of this import's target.
|
void |
toXML(org.xml.sax.ContentHandler aContentHandler,
boolean aWriteDefaultNamespaceAttribute)
Overridden to provide custom XML representation.
|
buildFromXMLElement, clone, equals, getAttributeClass, getAttributeValue, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSourceUrl, getSourceUrlString, getWrapperClass, getXMLAttributes, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, setAttributeValue, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, writeArrayPropertyAsElement, writeMapPropertyToXml, writePropertyAsElement
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
buildFromXMLElement, toXML, toXML, toXML
public java.lang.String getName()
Import
public void setName(java.lang.String aName)
Import
public java.lang.String getLocation()
Import
getLocation
in interface Import
public void setLocation(java.lang.String aUri)
Import
setLocation
in interface Import
aUri
- a URI specifying the location of this import's target.public java.net.URL findAbsoluteUrl(ResourceManager aResourceManager) throws InvalidXMLException
Import
findAbsoluteUrl
in interface Import
aResourceManager
- resource manager to use to do name lookupsInvalidXMLException
- if the import could not be resolvedpublic void buildFromXMLElement(org.w3c.dom.Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions) throws InvalidXMLException
buildFromXMLElement
in interface XMLizable
buildFromXMLElement
in class MetaDataObject_impl
aElement
- the XML element that represents this object.aParser
- a reference to the UIMA XMLParser
. The
XMLParser.buildObject(Element)
method can be used to construct sub-objects.aOptions
- option settingsInvalidXMLException
- if the input XML element does not specify a valid objectXMLizable.buildFromXMLElement(org.w3c.dom.Element,
org.apache.uima.util.XMLParser)
public void toXML(org.xml.sax.ContentHandler aContentHandler, boolean aWriteDefaultNamespaceAttribute) throws org.xml.sax.SAXException
toXML
in interface XMLizable
toXML
in class MetaDataObject_impl
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.org.xml.sax.SAXException
XMLizable.toXML(ContentHandler)
protected XmlizationInfo getXmlizationInfo()
MetaDataObject_impl
getXmlizationInfo
in class MetaDataObject_impl
org.apache.uima.resource.impl.MetaDataObject_impl#getXmlizationInfo()
Copyright © 2014. All Rights Reserved.