|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.codehaus.dna.impl.SAXConfigurationHandler
The SAXConfigurationHandler builds a Configuration tree from SAX events.
Constructor Summary | |
SAXConfigurationHandler()
|
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Receive text data for current element. |
void |
clear()
Reset internal state of handler in preapration for reuse. |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
End an element and thus a Configuration object. |
void |
error(org.xml.sax.SAXParseException spe)
Rethrow exception and dont attempt to do any error handling. |
void |
fatalError(org.xml.sax.SAXParseException spe)
Rethrow exception and dont attempt to do any error handling. |
Configuration |
getConfiguration()
Return the configuration created by handler. |
protected java.lang.String |
getLocationDescription()
Utility method to derive current location of XML parser. |
protected java.lang.String |
processAttributeText(Configuration configuration,
java.lang.String name,
java.lang.String value)
Users may subclass this method to process attribute prior to it being set. |
protected java.lang.String |
processValueText(Configuration configuration,
java.lang.String value)
Users may subclass this method to process content prior to it being set. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Let the XML parser specify locator for when events arrive at handler. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Start an element and thus a Configuration object. |
void |
warning(org.xml.sax.SAXParseException spe)
Rethrow exception and dont attempt to do any error handling. |
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 void setDocumentLocator(org.xml.sax.Locator locator)
locator
- the locatorpublic void clear()
public Configuration getConfiguration()
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
uri
- the uri (ignored)localName
- the localName (ignored)qName
- the qualified name (used for name of configuration)attributes
- the attributes of XML element
org.xml.sax.SAXException
- if unable to parse elementpublic void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
uri
- the uri (ignored)localName
- the localName (ignored)qName
- the qualified name (used for name of configuration)
org.xml.sax.SAXException
- if element had mixed contentpublic void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
ch
- the char arraystart
- the start indexlength
- the length of data
org.xml.sax.SAXException
- if unable ot parse datapublic void warning(org.xml.sax.SAXParseException spe) throws org.xml.sax.SAXException
spe
- the input exception
org.xml.sax.SAXException
- always thrownpublic void error(org.xml.sax.SAXParseException spe) throws org.xml.sax.SAXException
spe
- the input exception
org.xml.sax.SAXException
- always thrownpublic void fatalError(org.xml.sax.SAXParseException spe) throws org.xml.sax.SAXException
spe
- the input exception
org.xml.sax.SAXException
- always thrownprotected final java.lang.String getLocationDescription()
protected java.lang.String processAttributeText(Configuration configuration, java.lang.String name, java.lang.String value)
configuration
- the associated configurationname
- the attribute namevalue
- the attribute value
protected java.lang.String processValueText(Configuration configuration, java.lang.String value)
configuration
- the associated configurationvalue
- the value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |