public abstract class AbstractXmlHandler extends org.xml.sax.helpers.DefaultHandler implements XmlHandler
Constructor and Description |
---|
AbstractXmlHandler() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] chars,
int start,
int length)
Handle the characters event in the xml.
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Handle the end element event in the xml.
|
void |
error(org.xml.sax.SAXParseException exception)
Report error using FINE trace level.
|
void |
fatalError(org.xml.sax.SAXParseException exception)
Report fatal error
|
ConfigProperties |
getConfigProperties()
Get the instance of the configuration for this XML handler.
|
com.ibm.commerce.foundation.dataload.DataLoader |
getDataLoader()
Gets the data loader object.
|
void |
init()
Does some initialization.
|
void |
setConfigProperties(ConfigProperties aConfigProperties)
Sets the ConfigProperties to the XML handler.
|
void |
setDataLoader(com.ibm.commerce.foundation.dataload.DataLoader dataLoader)
Sets the data loader object
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
Set the document locator.
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Handle the start element event in the xml.
|
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
locator
- the locatorpublic void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
exception
- a SAXParseExceptionorg.xml.sax.SAXException
- if super.error() throws the exception.public void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
exception
- a SAXParseExceptionorg.xml.sax.SAXException
public void setDataLoader(com.ibm.commerce.foundation.dataload.DataLoader dataLoader)
setDataLoader
in interface XmlHandler
dataLoader
- a data loader objectpublic com.ibm.commerce.foundation.dataload.DataLoader getDataLoader()
getDataLoader
in interface XmlHandler
public void characters(char[] chars, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
chars
- the char arraystart
- the start index position in the char arraylength
- the lengthorg.xml.sax.SAXException
- if there are some errors to handle it.public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
uri
- the uri of the elementlocalName
- the location name of the elementqName
- the qualified name of the elementattributes
- the attributes in the element.org.xml.sax.SAXException
- if there are some errors to handle it.public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
uri
- the uri of the elementlocalName
- the location name of the elementqName
- the qualified name of the elementorg.xml.sax.SAXException
- if there are some errors to handle it.public void init() throws DataLoadException
init
in interface XmlHandler
DataLoadException
- if there are some errors in the initialization.public ConfigProperties getConfigProperties()
Get the instance of the configuration for this XML handler.
Call this method when you need to get more specific properties from the
ConfigProperties.
getConfigProperties
in interface XmlHandler
public void setConfigProperties(ConfigProperties aConfigProperties)
setConfigProperties
in interface XmlHandler
aConfigProperties
- a ConfigProperties