public abstract class ContentHandlerEx 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
Deprecated.
|
int |
state
Deprecated.
Current state of this automaton.
|
Constructor and Description |
---|
ContentHandlerEx(UnmarshallingContext _ctxt,
String _stateTextTypes)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dump()
Deprecated.
|
void |
enterAttribute(String uri,
String local)
Deprecated.
|
void |
enterElement(String uri,
String local,
Attributes atts)
Deprecated.
|
protected void |
handleParseConversionException(Exception e)
Deprecated.
This method is called by the generated derived class
when a datatype parse method throws an exception.
|
protected void |
handleUnexpectedTextException(String text,
RuntimeException e)
Deprecated.
Called when a RuntimeException is thrown during unmarshalling a text.
|
protected boolean |
isListState()
Deprecated.
Checks if the current state is marked as a list state.
|
void |
leaveAttribute(String uri,
String local)
Deprecated.
|
void |
leaveChild(int nextState)
Deprecated.
|
void |
leaveElement(String uri,
String local)
Deprecated.
|
protected abstract UnmarshallableObject |
owner()
Deprecated.
Returns the content-tree object for which this ContentHandlerEx
is working for.
|
protected void |
revertToParentFromEnterAttribute(String uri,
String local)
Deprecated.
|
protected void |
revertToParentFromEnterElement(String uri,
String local,
Attributes atts)
Deprecated.
|
protected void |
revertToParentFromLeaveAttribute(String uri,
String local)
Deprecated.
|
protected void |
revertToParentFromLeaveElement(String uri,
String local)
Deprecated.
|
protected void |
revertToParentFromText(String value)
Deprecated.
|
protected Object |
spawnChildFromEnterAttribute(Class clazz,
int memento,
String uri,
String local)
Deprecated.
|
protected Object |
spawnChildFromEnterElement(Class clazz,
int memento,
String uri,
String local,
Attributes atts)
Deprecated.
|
protected Object |
spawnChildFromLeaveAttribute(Class clazz,
int memento,
String uri,
String local)
Deprecated.
|
protected Object |
spawnChildFromLeaveElement(Class clazz,
int memento,
String uri,
String local)
Deprecated.
|
protected Object |
spawnChildFromText(Class clazz,
int memento,
String value)
Deprecated.
|
protected void |
spawnSuperClassFromEnterAttribute(ContentHandlerEx unm,
int memento,
String uri,
String local)
Deprecated.
|
protected void |
spawnSuperClassFromEnterElement(ContentHandlerEx unm,
int memento,
String uri,
String local,
Attributes atts)
Deprecated.
|
protected void |
spawnSuperClassFromFromText(ContentHandlerEx unm,
int memento,
String value)
Deprecated.
|
protected void |
spawnSuperClassFromLeaveAttribute(ContentHandlerEx unm,
int memento,
String uri,
String local)
Deprecated.
|
protected void |
spawnSuperClassFromLeaveElement(ContentHandlerEx unm,
int memento,
String uri,
String local)
Deprecated.
|
protected void |
spawnSuperClassFromText(ContentHandlerEx unm,
int memento,
String text)
Deprecated.
|
protected Element |
spawnWildcard(int memento,
String uri,
String local,
Attributes atts)
Deprecated.
|
void |
text(String s)
Deprecated.
|
protected void |
unexpectedEnterAttribute(String uri,
String local)
Deprecated.
|
protected void |
unexpectedEnterElement(String uri,
String local)
Deprecated.
|
protected void |
unexpectedLeaveAttribute(String uri,
String local)
Deprecated.
|
protected void |
unexpectedLeaveChild()
Deprecated.
|
protected void |
unexpectedLeaveElement(String uri,
String local)
Deprecated.
|
protected void |
unexpectedText(String str)
Deprecated.
|
public final UnmarshallingContext context
public int state
public ContentHandlerEx(UnmarshallingContext _ctxt, String _stateTextTypes)
protected abstract UnmarshallableObject owner()
public void enterElement(String uri, String local, Attributes atts) throws UnreportedException
enterElement
in interface UnmarshallingEventHandler
UnreportedException
public void leaveElement(String uri, String local) throws UnreportedException
leaveElement
in interface UnmarshallingEventHandler
UnreportedException
public void text(String s) throws UnreportedException
text
in interface UnmarshallingEventHandler
UnreportedException
public void enterAttribute(String uri, String local) throws UnreportedException
enterAttribute
in interface UnmarshallingEventHandler
UnreportedException
public void leaveAttribute(String uri, String local) throws UnreportedException
leaveAttribute
in interface UnmarshallingEventHandler
UnreportedException
public void leaveChild(int nextState) throws UnreportedException
leaveChild
in interface UnmarshallingEventHandler
UnreportedException
protected final boolean isListState()
protected void handleUnexpectedTextException(String text, RuntimeException e) throws UnreportedException
UnreportedException
protected final void dump()
protected final void unexpectedEnterElement(String uri, String local) throws UnreportedException
UnreportedException
protected final void unexpectedLeaveElement(String uri, String local) throws UnreportedException
UnreportedException
protected final void unexpectedEnterAttribute(String uri, String local) throws UnreportedException
UnreportedException
protected final void unexpectedLeaveAttribute(String uri, String local) throws UnreportedException
UnreportedException
protected final void unexpectedText(String str) throws UnreportedException
UnreportedException
protected final void unexpectedLeaveChild() throws UnreportedException
UnreportedException
protected void handleParseConversionException(Exception e)
protected final Object spawnChildFromEnterElement(Class clazz, int memento, String uri, String local, Attributes atts) throws UnreportedException
UnreportedException
protected final Object spawnChildFromEnterAttribute(Class clazz, int memento, String uri, String local) throws UnreportedException
UnreportedException
protected final Object spawnChildFromText(Class clazz, int memento, String value) throws UnreportedException
UnreportedException
protected final Object spawnChildFromLeaveElement(Class clazz, int memento, String uri, String local) throws UnreportedException
UnreportedException
protected final Object spawnChildFromLeaveAttribute(Class clazz, int memento, String uri, String local) throws UnreportedException
UnreportedException
protected final Element spawnWildcard(int memento, String uri, String local, Attributes atts) throws UnreportedException
UnreportedException
protected final void spawnSuperClassFromEnterElement(ContentHandlerEx unm, int memento, String uri, String local, Attributes atts) throws UnreportedException
UnreportedException
protected final void spawnSuperClassFromEnterAttribute(ContentHandlerEx unm, int memento, String uri, String local) throws UnreportedException
UnreportedException
protected final void spawnSuperClassFromFromText(ContentHandlerEx unm, int memento, String value) throws UnreportedException
UnreportedException
protected final void spawnSuperClassFromLeaveElement(ContentHandlerEx unm, int memento, String uri, String local) throws UnreportedException
UnreportedException
protected final void spawnSuperClassFromLeaveAttribute(ContentHandlerEx unm, int memento, String uri, String local) throws UnreportedException
UnreportedException
protected final void spawnSuperClassFromText(ContentHandlerEx unm, int memento, String text) throws UnreportedException
UnreportedException
protected final void revertToParentFromEnterElement(String uri, String local, Attributes atts) throws UnreportedException
UnreportedException
protected final void revertToParentFromLeaveElement(String uri, String local) throws UnreportedException
UnreportedException
protected final void revertToParentFromEnterAttribute(String uri, String local) throws UnreportedException
UnreportedException
protected final void revertToParentFromLeaveAttribute(String uri, String local) throws UnreportedException
UnreportedException
protected final void revertToParentFromText(String value) throws UnreportedException
UnreportedException
Copyright © 2017 Oracle Corporation. All rights reserved.