public class NamespacedSAXConfigurationHandler extends SAXConfigurationHandler
Constructor and Description |
---|
NamespacedSAXConfigurationHandler() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int end)
Handling hook for character data.
|
void |
clear()
Clears all data from this configuration handler.
|
protected DefaultConfiguration |
createConfiguration(java.lang.String localName,
java.lang.String namespaceURI,
java.lang.String location)
Create a new
DefaultConfiguration with the specified
local name, namespace, and location. |
void |
endDocument()
Handling hook for ending the document parsing.
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String rawName)
Handling hook for finishing parsing of an element.
|
void |
error(org.xml.sax.SAXParseException exception)
This just throws an exception on a parse error.
|
void |
fatalError(org.xml.sax.SAXParseException exception)
This just throws an exception on a parse error.
|
Configuration |
getConfiguration()
Get the configuration object that was built.
|
protected java.lang.String |
getLocationString()
Returns a string showing the current system ID, line number and column number.
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
Set the document
Locator to use. |
void |
startDocument()
Handling hook for starting the document parsing.
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String rawName,
org.xml.sax.Attributes attributes)
Handling hook for starting parsing of an element.
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Handling hook for starting prefix mapping.
|
void |
warning(org.xml.sax.SAXParseException exception)
This just throws an exception on a parse error.
|
createConfiguration
public Configuration getConfiguration()
getConfiguration
in class SAXConfigurationHandler
Configuration
objectpublic void clear()
clear
in class SAXConfigurationHandler
public void setDocumentLocator(org.xml.sax.Locator locator)
Locator
to use.setDocumentLocator
in interface org.xml.sax.ContentHandler
setDocumentLocator
in class SAXConfigurationHandler
locator
- a Locator
valuepublic void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
- if an error occurspublic void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
- if an error occurspublic void characters(char[] ch, int start, int end) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class SAXConfigurationHandler
ch
- a char[]
of datastart
- offset in the character array from which to start readingend
- length of character dataorg.xml.sax.SAXException
- if an error occurspublic void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class SAXConfigurationHandler
namespaceURI
- a String
valuelocalName
- a String
valuerawName
- a String
valueorg.xml.sax.SAXException
- if an error occursprotected DefaultConfiguration createConfiguration(java.lang.String localName, java.lang.String namespaceURI, java.lang.String location)
DefaultConfiguration
with the specified
local name, namespace, and location.localName
- a String
valuenamespaceURI
- a String
valuelocation
- a String
valueDefaultConfiguration
valuepublic void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class SAXConfigurationHandler
namespaceURI
- a String
valuelocalName
- a String
valuerawName
- a String
valueattributes
- an Attributes
valueorg.xml.sax.SAXException
- if an error occurspublic void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
error
in class SAXConfigurationHandler
exception
- the parse errororg.xml.sax.SAXException
- if an error occurspublic void warning(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
warning
in class SAXConfigurationHandler
exception
- the parse errororg.xml.sax.SAXException
- if an error occurspublic void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class SAXConfigurationHandler
exception
- the parse errororg.xml.sax.SAXException
- if an error occursprotected java.lang.String getLocationString()
getLocationString
in class SAXConfigurationHandler
String
valuepublic void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
startPrefixMapping
in class org.xml.sax.helpers.DefaultHandler
prefix
- a String
valueuri
- a String
valueorg.xml.sax.SAXException
- if an error occurs