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(String localName,
String namespaceURI,
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(String namespaceURI,
String localName,
String rawName)
Handling hook for finishing parsing of an element.
|
void |
error(SAXParseException exception)
This just throws an exception on a parse error.
|
void |
fatalError(SAXParseException exception)
This just throws an exception on a parse error.
|
Configuration |
getConfiguration()
Get the configuration object that was built.
|
protected String |
getLocationString()
Returns a string showing the current system ID, line number and column number.
|
void |
setDocumentLocator(Locator locator)
Set the document
Locator to use. |
void |
startDocument()
Handling hook for starting the document parsing.
|
void |
startElement(String namespaceURI,
String localName,
String rawName,
Attributes attributes)
Handling hook for starting parsing of an element.
|
void |
startPrefixMapping(String prefix,
String uri)
Handling hook for starting prefix mapping.
|
void |
warning(SAXParseException exception)
This just throws an exception on a parse error.
|
createConfigurationendPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, unparsedEntityDeclpublic Configuration getConfiguration()
getConfiguration in class SAXConfigurationHandlerConfiguration objectpublic void clear()
clear in class SAXConfigurationHandlerpublic void setDocumentLocator(Locator locator)
Locator to use.setDocumentLocator in interface ContentHandlersetDocumentLocator in class SAXConfigurationHandlerlocator - a Locator valuepublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXException - if an error occurspublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXException - if an error occurspublic void characters(char[] ch,
int start,
int end)
throws SAXException
characters in interface ContentHandlercharacters in class SAXConfigurationHandlerch - a char[] of datastart - offset in the character array from which to start readingend - length of character dataSAXException - if an error occurspublic void endElement(String namespaceURI, String localName, String rawName) throws SAXException
endElement in interface ContentHandlerendElement in class SAXConfigurationHandlernamespaceURI - a String valuelocalName - a String valuerawName - a String valueSAXException - if an error occursprotected DefaultConfiguration createConfiguration(String localName, String namespaceURI, String location)
DefaultConfiguration with the specified
local name, namespace, and location.localName - a String valuenamespaceURI - a String valuelocation - a String valueDefaultConfiguration valuepublic void startElement(String namespaceURI, String localName, String rawName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class SAXConfigurationHandlernamespaceURI - a String valuelocalName - a String valuerawName - a String valueattributes - an Attributes valueSAXException - if an error occurspublic void error(SAXParseException exception) throws SAXException
error in interface ErrorHandlererror in class SAXConfigurationHandlerexception - the parse errorSAXException - if an error occurspublic void warning(SAXParseException exception) throws SAXException
warning in interface ErrorHandlerwarning in class SAXConfigurationHandlerexception - the parse errorSAXException - if an error occurspublic void fatalError(SAXParseException exception) throws SAXException
fatalError in interface ErrorHandlerfatalError in class SAXConfigurationHandlerexception - the parse errorSAXException - if an error occursprotected String getLocationString()
getLocationString in class SAXConfigurationHandlerString valuepublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class DefaultHandlerprefix - a String valueuri - a String valueSAXException - if an error occursCopyright © 2004-2020 EPICS. All Rights Reserved.