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

public final Class Discarder

extends Loader
Class Inheritance

Loader implementation that discards the whole sub-tree. Mostly used for recovering fom errors.
Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
public static final Loader
Inherited from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader:
expectText

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

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

Called when this loaderis an active loaderand we see a new child start tag.

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

Field Detail

INSTANCEback to summary
public static final Loader INSTANCE

Constructor Detail

Discarderback to summary
private Discarder()

Method Detail

childElementback to summary
public void childElement(UnmarshallingContext.State state, TagName ea)

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

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

Called when this loaderis an active loaderand we see a new child start tag.

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.

Annotations
@Override