public class Import_impl extends MetaDataObject_impl implements Import
MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer
Modifier and Type | Field and Description |
---|---|
protected static String |
LOG_RESOURCE_BUNDLE
resource bundle for log messages
|
serialContext
EMPTY_IMPORTS
Constructor and Description |
---|
Import_impl() |
Modifier and Type | Method and Description |
---|---|
void |
buildFromXMLElement(Element aElement,
XMLParser aParser,
XMLParser.ParsingOptions aOptions)
Overridden to provide custom XML representation.
|
URL |
findAbsoluteUrl(ResourceManager aResourceManager)
Computes the absolute URL for this import, using the relative location or name, whichever is
specified by this import object.
|
String |
getLocation()
Gets the location of this import's target.
|
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(String aUri)
Sets the location of this import's target.
|
void |
setName(String aName)
Sets the name of this import's target.
|
void |
setSuffix(String suffix) |
void |
toXML(ContentHandler aContentHandler,
boolean aWriteDefaultNamespaceAttribute)
Overridden to provide custom XML representation.
|
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
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
buildFromXMLElement, toXML, toXML, toXML
protected static final String LOG_RESOURCE_BUNDLE
public String getName()
Import
public void setName(String aName)
Import
public String getLocation()
Import
getLocation
in interface Import
public void setLocation(String aUri)
Import
setLocation
in interface Import
aUri
- a URI specifying the location of this import's target.public void setSuffix(String suffix)
public 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(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(ContentHandler aContentHandler, boolean aWriteDefaultNamespaceAttribute) throws 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.SAXException
- pass thruXMLizable.toXML(ContentHandler)
protected XmlizationInfo getXmlizationInfo()
MetaDataObject_impl
getXmlizationInfo
in class MetaDataObject_impl
MetaDataObject_impl.getXmlizationInfo()
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.