public abstract class AbstractUnmarshallingEventHandlerImpl extends Object implements UnmarshallingEventHandler
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.
Modifier and Type | Field and Description |
---|---|
UnmarshallingContext |
context |
int |
state
Current state of this automaton.
|
Constructor and Description |
---|
AbstractUnmarshallingEventHandlerImpl(UnmarshallingContext _ctxt,
String _stateTextTypes) |
Modifier and Type | Method and Description |
---|---|
protected void |
dump() |
void |
enterAttribute(String uri,
String local,
String qname) |
void |
enterElement(String uri,
String local,
String qname,
Attributes atts) |
protected void |
handleGenericException(Exception e)
Last resort when something goes terribly wrong within the unmarshaller.
|
protected void |
handleParseConversionException(Exception e)
This method is called by the generated derived class
when a datatype parse method throws an exception.
|
protected void |
handleText(String s) |
protected void |
handleUnexpectedTextException(String text,
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(String uri,
String local,
String qname) |
void |
leaveChild(int nextState) |
void |
leaveElement(String uri,
String local,
String qname) |
protected void |
revertToParentFromEnterAttribute(String uri,
String local,
String qname) |
protected void |
revertToParentFromEnterElement(String uri,
String local,
String qname,
Attributes atts) |
protected void |
revertToParentFromLeaveAttribute(String uri,
String local,
String qname) |
protected void |
revertToParentFromLeaveElement(String uri,
String local,
String qname) |
protected void |
revertToParentFromText(String value) |
protected Object |
spawnChildFromEnterAttribute(Class clazz,
int memento,
String uri,
String local,
String qname) |
protected Object |
spawnChildFromEnterElement(Class clazz,
int memento,
String uri,
String local,
String qname,
Attributes atts) |
protected Object |
spawnChildFromLeaveAttribute(Class clazz,
int memento,
String uri,
String local,
String qname) |
protected Object |
spawnChildFromLeaveElement(Class clazz,
int memento,
String uri,
String local,
String qname) |
protected Object |
spawnChildFromText(Class clazz,
int memento,
String value) |
protected void |
spawnHandlerFromEnterAttribute(UnmarshallingEventHandler unm,
int memento,
String uri,
String local,
String qname) |
protected void |
spawnHandlerFromEnterElement(UnmarshallingEventHandler unm,
int memento,
String uri,
String local,
String qname,
Attributes atts) |
protected void |
spawnHandlerFromFromText(UnmarshallingEventHandler unm,
int memento,
String value) |
protected void |
spawnHandlerFromLeaveAttribute(UnmarshallingEventHandler unm,
int memento,
String uri,
String local,
String qname) |
protected void |
spawnHandlerFromLeaveElement(UnmarshallingEventHandler unm,
int memento,
String uri,
String local,
String qname) |
protected void |
spawnHandlerFromText(UnmarshallingEventHandler unm,
int memento,
String text) |
protected Element |
spawnWildcard(int memento,
String uri,
String local,
String qname,
Attributes atts) |
void |
text(String text) |
protected void |
unexpectedEnterAttribute(String uri,
String local,
String qname) |
protected void |
unexpectedEnterElement(String uri,
String local,
String qname,
Attributes atts) |
protected void |
unexpectedLeaveAttribute(String uri,
String local,
String qname) |
protected void |
unexpectedLeaveChild() |
protected void |
unexpectedLeaveElement(String uri,
String local,
String qname) |
protected void |
unexpectedText(String str) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
owner
public final UnmarshallingContext context
public int state
public AbstractUnmarshallingEventHandlerImpl(UnmarshallingContext _ctxt, String _stateTextTypes)
public void enterElement(String uri, String local, String qname, Attributes atts) throws SAXException
enterElement
in interface UnmarshallingEventHandler
SAXException
public void leaveElement(String uri, String local, String qname) throws SAXException
leaveElement
in interface UnmarshallingEventHandler
SAXException
public final void text(String text) throws SAXException
text
in interface UnmarshallingEventHandler
SAXException
protected void handleText(String s) throws SAXException
SAXException
public void enterAttribute(String uri, String local, String qname) throws SAXException
enterAttribute
in interface UnmarshallingEventHandler
SAXException
public void leaveAttribute(String uri, String local, String qname) throws SAXException
leaveAttribute
in interface UnmarshallingEventHandler
SAXException
public void leaveChild(int nextState) throws SAXException
leaveChild
in interface UnmarshallingEventHandler
SAXException
protected final boolean isListState()
protected void handleUnexpectedTextException(String text, RuntimeException e) throws SAXException
SAXException
protected void handleGenericException(Exception e) throws SAXException
SAXException
protected final void dump()
protected final void unexpectedEnterElement(String uri, String local, String qname, Attributes atts) throws SAXException
SAXException
protected final void unexpectedLeaveElement(String uri, String local, String qname) throws SAXException
SAXException
protected final void unexpectedEnterAttribute(String uri, String local, String qname) throws SAXException
SAXException
protected final void unexpectedLeaveAttribute(String uri, String local, String qname) throws SAXException
SAXException
protected final void unexpectedText(String str) throws SAXException
SAXException
protected final void unexpectedLeaveChild() throws SAXException
SAXException
protected void handleParseConversionException(Exception e) throws SAXException
SAXException
protected final Object spawnChildFromEnterElement(Class clazz, int memento, String uri, String local, String qname, Attributes atts) throws SAXException
SAXException
protected final Object spawnChildFromEnterAttribute(Class clazz, int memento, String uri, String local, String qname) throws SAXException
SAXException
protected final Object spawnChildFromText(Class clazz, int memento, String value) throws SAXException
SAXException
protected final Object spawnChildFromLeaveElement(Class clazz, int memento, String uri, String local, String qname) throws SAXException
SAXException
protected final Object spawnChildFromLeaveAttribute(Class clazz, int memento, String uri, String local, String qname) throws SAXException
SAXException
protected final Element spawnWildcard(int memento, String uri, String local, String qname, Attributes atts) throws SAXException
SAXException
protected final void spawnHandlerFromEnterElement(UnmarshallingEventHandler unm, int memento, String uri, String local, String qname, Attributes atts) throws SAXException
SAXException
protected final void spawnHandlerFromEnterAttribute(UnmarshallingEventHandler unm, int memento, String uri, String local, String qname) throws SAXException
SAXException
protected final void spawnHandlerFromFromText(UnmarshallingEventHandler unm, int memento, String value) throws SAXException
SAXException
protected final void spawnHandlerFromLeaveElement(UnmarshallingEventHandler unm, int memento, String uri, String local, String qname) throws SAXException
SAXException
protected final void spawnHandlerFromLeaveAttribute(UnmarshallingEventHandler unm, int memento, String uri, String local, String qname) throws SAXException
SAXException
protected final void spawnHandlerFromText(UnmarshallingEventHandler unm, int memento, String text) throws SAXException
SAXException
protected final void revertToParentFromEnterElement(String uri, String local, String qname, Attributes atts) throws SAXException
SAXException
protected final void revertToParentFromLeaveElement(String uri, String local, String qname) throws SAXException
SAXException
protected final void revertToParentFromEnterAttribute(String uri, String local, String qname) throws SAXException
SAXException
protected final void revertToParentFromLeaveAttribute(String uri, String local, String qname) throws SAXException
SAXException
protected final void revertToParentFromText(String value) throws SAXException
SAXException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.