|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jagatoo.util.xml.SimpleXMLHandlerDelegate
public abstract class SimpleXMLHandlerDelegate
This class easily handles XML parsing.
Nested Class Summary | |
---|---|
static class |
SimpleXMLHandlerDelegate.ExceptionSeverity
|
Constructor Summary | |
---|---|
SimpleXMLHandlerDelegate()
|
Method Summary | |
---|---|
protected void |
delegate(SimpleXMLHandlerDelegate delegate)
Start a delegate handler. |
XMLHandlerAdapter |
getAdapter()
|
protected java.lang.Object |
getPathObject(XMLPath path,
java.lang.String element)
Converts the passed element to a path element. |
abstract void |
handleForkElement(java.lang.String name,
java.lang.Object object,
org.xml.sax.Attributes attributes)
Invoked first when this object is used to start a fork. |
protected abstract void |
onElementData(XMLPath path,
org.xml.sax.Attributes attributes,
char[] data,
int start,
int length)
Invoked when an XML element's character data is available. |
protected abstract void |
onElementEnded(XMLPath path,
java.lang.String name,
java.lang.Object object)
Invoked when an XML element end has been detected. |
protected abstract void |
onElementStarted(XMLPath path,
java.lang.String name,
java.lang.Object object,
org.xml.sax.Attributes attributes)
Invoked when an XML element has been detected. |
protected void |
onParsingException(XMLPath path,
SimpleXMLHandlerDelegate.ExceptionSeverity severity,
org.xml.sax.SAXParseException ex)
Invoked when a parsing exception occurred. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleXMLHandlerDelegate()
Method Detail |
---|
public final XMLHandlerAdapter getAdapter()
protected final void delegate(SimpleXMLHandlerDelegate delegate) throws org.xml.sax.SAXException
delegate
-
org.xml.sax.SAXException
public abstract void handleForkElement(java.lang.String name, java.lang.Object object, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
name
- object
- attributes
-
org.xml.sax.SAXException
protected java.lang.Object getPathObject(XMLPath path, java.lang.String element)
path
- then current XML element pathelement
- the element's name
protected abstract void onElementStarted(XMLPath path, java.lang.String name, java.lang.Object object, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
path
- then current XML element pathname
- the element's nameobject
- the path objectattributes
- the attributes
org.xml.sax.SAXException
protected abstract void onElementData(XMLPath path, org.xml.sax.Attributes attributes, char[] data, int start, int length) throws org.xml.sax.SAXException
path
- then current XML element pathattributes
- the attributesdata
- the charactersstart
- the start position in the character arraylength
- the number of characters to use from the character array
org.xml.sax.SAXException
protected abstract void onElementEnded(XMLPath path, java.lang.String name, java.lang.Object object) throws org.xml.sax.SAXException
path
- then current XML element pathname
- the element's nameobject
- the path object
org.xml.sax.SAXException
protected void onParsingException(XMLPath path, SimpleXMLHandlerDelegate.ExceptionSeverity severity, org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
path
- then current XML element pathseverity
- the exception severityex
- the exception
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |