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, writePropertyAsElementfinalize, getClass, notify, notifyAll, wait, wait, waitclone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlbuildFromXMLElement, toXML, toXML, toXMLpublic java.lang.String getName()
Importpublic void setName(java.lang.String aName)
Importpublic java.lang.String getLocation()
ImportgetLocation in interface Importpublic void setLocation(java.lang.String aUri)
ImportsetLocation in interface ImportaUri - a URI specifying the location of this import's target.public java.net.URL findAbsoluteUrl(ResourceManager aResourceManager) throws InvalidXMLException
ImportfindAbsoluteUrl in interface ImportaResourceManager - 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 XMLizablebuildFromXMLElement in class MetaDataObject_implaElement - 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 XMLizabletoXML in class MetaDataObject_implaContentHandler - 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.SAXExceptionXMLizable.toXML(ContentHandler)protected XmlizationInfo getXmlizationInfo()
MetaDataObject_implgetXmlizationInfo in class MetaDataObject_implorg.apache.uima.resource.impl.MetaDataObject_impl#getXmlizationInfo()Copyright © 2013. All Rights Reserved.