Top Description Fields Constructors Methods
org.glassfish.jaxb.runtime.v2.runtime.unmarshaller

public abstract Class ProxyLoader

extends Loader
Class Inheritance
Known Direct Subclasses
org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.WildcardLoader, org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.XsiNilLoader
Imports
org.xml.sax.SAXException

Loader that delegates the processing to another Loader at startElement(UnmarshallingContext.State, TagName).
Author
Kohsuke Kawaguchi

Field Summary

Inherited from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader:
expectText

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final void
leaveElement(UnmarshallingContext.State state, TagName ea)

Overrides org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader.leaveElement.

Called when this loaderis an active loaderand we see an end tag.

protected abstract Loader

Returns:

never null.
selectLoader
(UnmarshallingContext.State state, TagName ea)

Picks the loader to delegate to.

public final void
startElement(UnmarshallingContext.State state, TagName ea)

Overrides org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader.startElement.

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.

Inherited from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader:
childElementexpectTextfireAfterUnmarshalfireBeforeUnmarshalgetExpectedAttributesgetExpectedChildElementshandleGenericErrorhandleGenericExceptionhandleGenericExceptionhandleParseConversionExceptionreportErrorreportErrorreportUnexpectedChildElementtext

Constructor Detail

ProxyLoaderback to summary
public ProxyLoader()

Method Detail

leaveElementback to summary
public final void leaveElement(UnmarshallingContext.State state, TagName ea)

Overrides org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader.leaveElement.

Doc from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader.leaveElement.

Called when this loaderis an active loaderand we see an end tag.

Annotations
@Override
selectLoaderback to summary
protected abstract Loader selectLoader(UnmarshallingContext.State state, TagName ea) throws SAXException

Picks the loader to delegate to.

Returns:Loader

never null.

startElementback to summary
public final void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException

Overrides org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader.startElement.

Doc from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader.startElement.

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 another for the processing. It's the responsibility of the callee to forward the startElement event in such a case.

Annotations
@Override