|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jour.config.impl.runtime.AbstractUnmarshallingEventHandlerImpl
Convenient default implementation of
UnmarshallingEventHandler
to minimize code generation.
For historical reasons, sometimes this type is used where
UnmarshallingEventHandler
should be used.
Once an exception is in the form of UnmarshalException, we consider
it to be already reported to the client app.
Field Summary | |
UnmarshallingContext |
context
|
int |
state
Current state of this automaton. |
Constructor Summary | |
AbstractUnmarshallingEventHandlerImpl(UnmarshallingContext _ctxt,
java.lang.String _stateTextTypes)
|
Method Summary | |
protected void |
dump()
|
void |
enterAttribute(java.lang.String uri,
java.lang.String local,
java.lang.String qname)
|
void |
enterElement(java.lang.String uri,
java.lang.String local,
java.lang.String qname,
org.xml.sax.Attributes atts)
|
protected void |
handleGenericException(java.lang.Exception e)
Last resort when something goes terribly wrong within the unmarshaller. |
protected void |
handleParseConversionException(java.lang.Exception e)
This method is called by the generated derived class when a datatype parse method throws an exception. |
protected void |
handleText(java.lang.String s)
|
protected void |
handleUnexpectedTextException(java.lang.String text,
java.lang.RuntimeException e)
Called when a RuntimeException is thrown during unmarshalling a text. |
protected boolean |
isListState()
Checks if the current state is marked as a list state. |
void |
leaveAttribute(java.lang.String uri,
java.lang.String local,
java.lang.String qname)
|
void |
leaveChild(int nextState)
|
void |
leaveElement(java.lang.String uri,
java.lang.String local,
java.lang.String qname)
|
protected void |
revertToParentFromEnterAttribute(java.lang.String uri,
java.lang.String local,
java.lang.String qname)
|
protected void |
revertToParentFromEnterElement(java.lang.String uri,
java.lang.String local,
java.lang.String qname,
org.xml.sax.Attributes atts)
|
protected void |
revertToParentFromLeaveAttribute(java.lang.String uri,
java.lang.String local,
java.lang.String qname)
|
protected void |
revertToParentFromLeaveElement(java.lang.String uri,
java.lang.String local,
java.lang.String qname)
|
protected void |
revertToParentFromText(java.lang.String value)
|
protected java.lang.Object |
spawnChildFromEnterAttribute(java.lang.Class clazz,
int memento,
java.lang.String uri,
java.lang.String local,
java.lang.String qname)
|
protected java.lang.Object |
spawnChildFromEnterElement(java.lang.Class clazz,
int memento,
java.lang.String uri,
java.lang.String local,
java.lang.String qname,
org.xml.sax.Attributes atts)
|
protected java.lang.Object |
spawnChildFromLeaveAttribute(java.lang.Class clazz,
int memento,
java.lang.String uri,
java.lang.String local,
java.lang.String qname)
|
protected java.lang.Object |
spawnChildFromLeaveElement(java.lang.Class clazz,
int memento,
java.lang.String uri,
java.lang.String local,
java.lang.String qname)
|
protected java.lang.Object |
spawnChildFromText(java.lang.Class clazz,
int memento,
java.lang.String value)
|
protected void |
spawnHandlerFromEnterAttribute(UnmarshallingEventHandler unm,
int memento,
java.lang.String uri,
java.lang.String local,
java.lang.String qname)
|
protected void |
spawnHandlerFromEnterElement(UnmarshallingEventHandler unm,
int memento,
java.lang.String uri,
java.lang.String local,
java.lang.String qname,
org.xml.sax.Attributes atts)
|
protected void |
spawnHandlerFromFromText(UnmarshallingEventHandler unm,
int memento,
java.lang.String value)
|
protected void |
spawnHandlerFromLeaveAttribute(UnmarshallingEventHandler unm,
int memento,
java.lang.String uri,
java.lang.String local,
java.lang.String qname)
|
protected void |
spawnHandlerFromLeaveElement(UnmarshallingEventHandler unm,
int memento,
java.lang.String uri,
java.lang.String local,
java.lang.String qname)
|
protected void |
spawnHandlerFromText(UnmarshallingEventHandler unm,
int memento,
java.lang.String text)
|
protected javax.xml.bind.Element |
spawnWildcard(int memento,
java.lang.String uri,
java.lang.String local,
java.lang.String qname,
org.xml.sax.Attributes atts)
|
void |
text(java.lang.String text)
|
protected void |
unexpectedEnterAttribute(java.lang.String uri,
java.lang.String local,
java.lang.String qname)
|
protected void |
unexpectedEnterElement(java.lang.String uri,
java.lang.String local,
java.lang.String qname,
org.xml.sax.Attributes atts)
|
protected void |
unexpectedLeaveAttribute(java.lang.String uri,
java.lang.String local,
java.lang.String qname)
|
protected void |
unexpectedLeaveChild()
|
protected void |
unexpectedLeaveElement(java.lang.String uri,
java.lang.String local,
java.lang.String qname)
|
protected void |
unexpectedText(java.lang.String str)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jour.config.impl.runtime.UnmarshallingEventHandler |
owner |
Field Detail |
public final UnmarshallingContext context
public int state
Constructor Detail |
public AbstractUnmarshallingEventHandlerImpl(UnmarshallingContext _ctxt, java.lang.String _stateTextTypes)
Method Detail |
public void enterElement(java.lang.String uri, java.lang.String local, java.lang.String qname, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
enterElement
in interface UnmarshallingEventHandler
org.xml.sax.SAXException
public void leaveElement(java.lang.String uri, java.lang.String local, java.lang.String qname) throws org.xml.sax.SAXException
leaveElement
in interface UnmarshallingEventHandler
org.xml.sax.SAXException
public final void text(java.lang.String text) throws org.xml.sax.SAXException
text
in interface UnmarshallingEventHandler
org.xml.sax.SAXException
protected void handleText(java.lang.String s) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void enterAttribute(java.lang.String uri, java.lang.String local, java.lang.String qname) throws org.xml.sax.SAXException
enterAttribute
in interface UnmarshallingEventHandler
org.xml.sax.SAXException
public void leaveAttribute(java.lang.String uri, java.lang.String local, java.lang.String qname) throws org.xml.sax.SAXException
leaveAttribute
in interface UnmarshallingEventHandler
org.xml.sax.SAXException
public void leaveChild(int nextState) throws org.xml.sax.SAXException
leaveChild
in interface UnmarshallingEventHandler
org.xml.sax.SAXException
protected final boolean isListState()
protected void handleUnexpectedTextException(java.lang.String text, java.lang.RuntimeException e) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void handleGenericException(java.lang.Exception e) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void dump()
protected final void unexpectedEnterElement(java.lang.String uri, java.lang.String local, java.lang.String qname, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void unexpectedLeaveElement(java.lang.String uri, java.lang.String local, java.lang.String qname) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void unexpectedEnterAttribute(java.lang.String uri, java.lang.String local, java.lang.String qname) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void unexpectedLeaveAttribute(java.lang.String uri, java.lang.String local, java.lang.String qname) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void unexpectedText(java.lang.String str) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void unexpectedLeaveChild() throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void handleParseConversionException(java.lang.Exception e) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final java.lang.Object spawnChildFromEnterElement(java.lang.Class clazz, int memento, java.lang.String uri, java.lang.String local, java.lang.String qname, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final java.lang.Object spawnChildFromEnterAttribute(java.lang.Class clazz, int memento, java.lang.String uri, java.lang.String local, java.lang.String qname) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final java.lang.Object spawnChildFromText(java.lang.Class clazz, int memento, java.lang.String value) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final java.lang.Object spawnChildFromLeaveElement(java.lang.Class clazz, int memento, java.lang.String uri, java.lang.String local, java.lang.String qname) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final java.lang.Object spawnChildFromLeaveAttribute(java.lang.Class clazz, int memento, java.lang.String uri, java.lang.String local, java.lang.String qname) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final javax.xml.bind.Element spawnWildcard(int memento, java.lang.String uri, java.lang.String local, java.lang.String qname, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void spawnHandlerFromEnterElement(UnmarshallingEventHandler unm, int memento, java.lang.String uri, java.lang.String local, java.lang.String qname, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void spawnHandlerFromEnterAttribute(UnmarshallingEventHandler unm, int memento, java.lang.String uri, java.lang.String local, java.lang.String qname) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void spawnHandlerFromFromText(UnmarshallingEventHandler unm, int memento, java.lang.String value) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void spawnHandlerFromLeaveElement(UnmarshallingEventHandler unm, int memento, java.lang.String uri, java.lang.String local, java.lang.String qname) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void spawnHandlerFromLeaveAttribute(UnmarshallingEventHandler unm, int memento, java.lang.String uri, java.lang.String local, java.lang.String qname) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void spawnHandlerFromText(UnmarshallingEventHandler unm, int memento, java.lang.String text) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void revertToParentFromEnterElement(java.lang.String uri, java.lang.String local, java.lang.String qname, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void revertToParentFromLeaveElement(java.lang.String uri, java.lang.String local, java.lang.String qname) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void revertToParentFromEnterAttribute(java.lang.String uri, java.lang.String local, java.lang.String qname) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void revertToParentFromLeaveAttribute(java.lang.String uri, java.lang.String local, java.lang.String qname) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void revertToParentFromText(java.lang.String value) throws org.xml.sax.SAXException
org.xml.sax.SAXException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |