|
|||||||||||
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(java.lang.String localName,
java.lang.String location)
Create a new DefaultConfiguration with the specified
local name and location. |
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 |
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 |
warning(org.xml.sax.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(org.xml.sax.Locator locator)
Locator
to use.
setDocumentLocator
in interface org.xml.sax.ContentHandler
locator
- a Locator
valuepublic void characters(char[] ch, int start, int end) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
ch
- a char[]
of datastart
- offset in the character array from which to start readingend
- length of character data
org.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
namespaceURI
- a String
valuelocalName
- a String
valuerawName
- a String
value
org.xml.sax.SAXException
- if an error occursprotected DefaultConfiguration createConfiguration(java.lang.String localName, java.lang.String location)
DefaultConfiguration
with the specified
local name and location.
localName
- a String
valuelocation
- a String
value
DefaultConfiguration
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
namespaceURI
- a String
valuelocalName
- a String
valuerawName
- a String
valueattributes
- an Attributes
value
org.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
exception
- the parse error
org.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
exception
- the parse error
org.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
exception
- the parse error
org.xml.sax.SAXException
- if an error occursprotected java.lang.String getLocationString()
String
value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |