Class ProxyLoader
java.lang.Object
org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader
org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.ProxyLoader
- Direct Known Subclasses:
WildcardLoader
,XsiNilLoader
Loader
that delegates the processing to another Loader
at startElement(UnmarshallingContext.State, TagName)
.- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields inherited from class org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader
expectText
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
leaveElement
(UnmarshallingContext.State state, TagName ea) Called when this loaderis an active loaderand we see an end tag.protected abstract Loader
selectLoader
(UnmarshallingContext.State state, TagName ea) Picks the loader to delegate to.final 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.Methods inherited from class org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader
childElement, expectText, fireAfterUnmarshal, fireBeforeUnmarshal, getExpectedAttributes, getExpectedChildElements, handleGenericError, handleGenericException, handleGenericException, handleParseConversionException, reportError, reportError, reportUnexpectedChildElement, text
-
Constructor Details
-
ProxyLoader
public ProxyLoader()
-
-
Method Details
-
startElement
Description copied from class:Loader
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.The callee may change
state.loader
to designate anotherLoader
for the processing. It's the responsibility of the callee to forward the startElement event in such a case.- Overrides:
startElement
in classLoader
ea
- info about the start tag. never null.- Throws:
SAXException
-
selectLoader
protected abstract Loader selectLoader(UnmarshallingContext.State state, TagName ea) throws SAXException Picks the loader to delegate to.- Returns:
- never null.
- Throws:
SAXException
-
leaveElement
Description copied from class:Loader
Called when this loaderis an active loaderand we see an end tag.- Overrides:
leaveElement
in classLoader
-