|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.bind.v2.runtime.unmarshaller.Loader
public abstract class Loader
Method Summary | |
---|---|
void |
childElement(UnmarshallingContext.State state,
TagName ea)
Called when this loaderis an active loaderand we see a new child start tag. |
boolean |
expectText()
True if this loader expects the text(UnmarshallingContext.State, CharSequence) method
to be called. |
java.util.Collection<javax.xml.namespace.QName> |
getExpectedAttributes()
Returns a set of tag names expected as possible child elements in this context. |
java.util.Collection<javax.xml.namespace.QName> |
getExpectedChildElements()
Returns a set of tag names expected as possible child elements in this context. |
static void |
handleGenericError(java.lang.Error e)
|
static void |
handleGenericException(java.lang.Exception e,
boolean canRecover)
|
void |
leaveElement(UnmarshallingContext.State state,
TagName ea)
Called when this loaderis an active loaderand we see an end tag. |
static void |
reportError(java.lang.String msg,
java.lang.Exception nested,
boolean canRecover)
|
void |
startElement(UnmarshallingContext.State state,
TagName ea)
Called when the loader is activated, which is when a new start tag is seen and when the parent designated this loader as the child loader. |
void |
text(UnmarshallingContext.State state,
java.lang.CharSequence text)
Called when this loaderis an active loaderand we see a chunk of text. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void startElement(UnmarshallingContext.State state, TagName ea) throws org.xml.sax.SAXException
The callee may change state.loader to designate another Loader
for the processing. It's the responsibility of the callee to forward the startElement
event in such a case.
ea
- info about the start tag. never null.
org.xml.sax.SAXException
public void childElement(UnmarshallingContext.State state, TagName ea) throws org.xml.sax.SAXException
The callee is expected to designate another loaderas a loaderthat processes
this element, then it should also register a Receiver
.
The designated loaderwill become an active loader.
The default implementation reports an error saying an element is unexpected.
org.xml.sax.SAXException
public java.util.Collection<javax.xml.namespace.QName> getExpectedChildElements()
public java.util.Collection<javax.xml.namespace.QName> getExpectedAttributes()
public void text(UnmarshallingContext.State state, java.lang.CharSequence text) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public final boolean expectText()
text(UnmarshallingContext.State, CharSequence)
method
to be called. False otherwise.
public void leaveElement(UnmarshallingContext.State state, TagName ea) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public static void handleGenericException(java.lang.Exception e, boolean canRecover) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public static void handleGenericError(java.lang.Error e) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public static void reportError(java.lang.String msg, java.lang.Exception nested, boolean canRecover) 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 |