|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.helpers.DefaultHandler | +--org.apache.avalon.framework.configuration.SAXConfigurationHandler
A SAXConfigurationHandler helps build Configurations out of sax events.
Constructor Summary | |
SAXConfigurationHandler()
|
Method Summary | |
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 location)
Create a new DefaultConfiguration with the specified
local name and location. |
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 |
startElement(String namespaceURI,
String localName,
String rawName,
Attributes attributes)
Handling hook for starting parsing of an element. |
void |
warning(SAXParseException exception)
This just throws an exception on a parse error. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SAXConfigurationHandler()
Method Detail |
public Configuration getConfiguration()
Configuration
objectpublic void clear()
public void setDocumentLocator(Locator locator)
Locator
to use.
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class DefaultHandler
locator
- a Locator
valuepublic void characters(char[] ch, int start, int end) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
ch
- a char[]
of datastart
- offset in the character array from which to start readingend
- length of character data
SAXException
- if an error occurspublic void endElement(String namespaceURI, String localName, String rawName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
namespaceURI
- a String
valuelocalName
- a String
valuerawName
- a String
value
SAXException
- if an error occursprotected DefaultConfiguration createConfiguration(String localName, String location)
DefaultConfiguration
with the specified
local name and location.
localName
- a String
valuelocation
- a String
value
DefaultConfiguration
valuepublic void startElement(String namespaceURI, String localName, String rawName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
namespaceURI
- a String
valuelocalName
- a String
valuerawName
- a String
valueattributes
- an Attributes
value
SAXException
- if an error occurspublic void error(SAXParseException exception) throws SAXException
error
in interface ErrorHandler
error
in class DefaultHandler
exception
- the parse error
SAXException
- if an error occurspublic void warning(SAXParseException exception) throws SAXException
warning
in interface ErrorHandler
warning
in class DefaultHandler
exception
- the parse error
SAXException
- if an error occurspublic void fatalError(SAXParseException exception) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
exception
- the parse error
SAXException
- if an error occursprotected String getLocationString()
String
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |