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 UnmarshallingEventHandlerUnreportedExceptionpublic void leaveElement(String uri, String local) throws UnreportedException
leaveElement in interface UnmarshallingEventHandlerUnreportedExceptionpublic void text(String s) throws UnreportedException
text in interface UnmarshallingEventHandlerUnreportedExceptionpublic void enterAttribute(String uri, String local) throws UnreportedException
enterAttribute in interface UnmarshallingEventHandlerUnreportedExceptionpublic void leaveAttribute(String uri, String local) throws UnreportedException
leaveAttribute in interface UnmarshallingEventHandlerUnreportedExceptionpublic void leaveChild(int nextState)
throws UnreportedException
leaveChild in interface UnmarshallingEventHandlerUnreportedExceptionprotected final boolean isListState()
protected void handleUnexpectedTextException(String text, RuntimeException e) throws UnreportedException
UnreportedExceptionprotected final void dump()
protected final void unexpectedEnterElement(String uri, String local) throws UnreportedException
UnreportedExceptionprotected final void unexpectedLeaveElement(String uri, String local) throws UnreportedException
UnreportedExceptionprotected final void unexpectedEnterAttribute(String uri, String local) throws UnreportedException
UnreportedExceptionprotected final void unexpectedLeaveAttribute(String uri, String local) throws UnreportedException
UnreportedExceptionprotected final void unexpectedText(String str) throws UnreportedException
UnreportedExceptionprotected final void unexpectedLeaveChild()
throws UnreportedException
UnreportedExceptionprotected void handleParseConversionException(Exception e)
protected final Object spawnChildFromEnterElement(Class clazz, int memento, String uri, String local, Attributes atts) throws UnreportedException
UnreportedExceptionprotected final Object spawnChildFromEnterAttribute(Class clazz, int memento, String uri, String local) throws UnreportedException
UnreportedExceptionprotected final Object spawnChildFromText(Class clazz, int memento, String value) throws UnreportedException
UnreportedExceptionprotected final Object spawnChildFromLeaveElement(Class clazz, int memento, String uri, String local) throws UnreportedException
UnreportedExceptionprotected final Object spawnChildFromLeaveAttribute(Class clazz, int memento, String uri, String local) throws UnreportedException
UnreportedExceptionprotected final Element spawnWildcard(int memento, String uri, String local, Attributes atts) throws UnreportedException
UnreportedExceptionprotected final void spawnSuperClassFromEnterElement(ContentHandlerEx unm, int memento, String uri, String local, Attributes atts) throws UnreportedException
UnreportedExceptionprotected final void spawnSuperClassFromEnterAttribute(ContentHandlerEx unm, int memento, String uri, String local) throws UnreportedException
UnreportedExceptionprotected final void spawnSuperClassFromFromText(ContentHandlerEx unm, int memento, String value) throws UnreportedException
UnreportedExceptionprotected final void spawnSuperClassFromLeaveElement(ContentHandlerEx unm, int memento, String uri, String local) throws UnreportedException
UnreportedExceptionprotected final void spawnSuperClassFromLeaveAttribute(ContentHandlerEx unm, int memento, String uri, String local) throws UnreportedException
UnreportedExceptionprotected final void spawnSuperClassFromText(ContentHandlerEx unm, int memento, String text) throws UnreportedException
UnreportedExceptionprotected final void revertToParentFromEnterElement(String uri, String local, Attributes atts) throws UnreportedException
UnreportedExceptionprotected final void revertToParentFromLeaveElement(String uri, String local) throws UnreportedException
UnreportedExceptionprotected final void revertToParentFromEnterAttribute(String uri, String local) throws UnreportedException
UnreportedExceptionprotected final void revertToParentFromLeaveAttribute(String uri, String local) throws UnreportedException
UnreportedExceptionprotected final void revertToParentFromText(String value) throws UnreportedException
UnreportedExceptionCopyright © 2015 Oracle Corporation. All Rights Reserved.