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

public Class XsiNilLoader

extends ProxyLoader
Class Inheritance
Known Direct Subclasses
org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.XsiNilLoader.Single, org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.XsiNilLoader.Array
Imports
org.glassfish.jaxb.runtime.DatatypeConverterImpl, org.glassfish.jaxb.runtime.api.AccessorException, org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor, jakarta.xml.bind.JAXBElement, org.xml.sax.SAXException, javax.xml.XMLConstants, javax.xml.namespace.QName, java.util.Collection

Looks for xsi:nil='true' and sets the target to null. Otherwise delegate to another handler.
Author
Kohsuke Kawaguchi

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
private final Loader

Constructor Summary

AccessConstructor and Description
public
XsiNilLoader(Loader defaultLoader)

Method Summary

Modifier and TypeMethod and Description
public Collection<QName>
getExpectedAttributes()

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

Returns a set of tag names expected as possible child elements in this context.

public Collection<QName>
getExpectedChildElements()

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

Returns a set of tag names expected as possible child elements in this context.

protected void
onNil(UnmarshallingContext.State state)

Called when xsi:nil='true' was found.

protected Loader
Inherited from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.ProxyLoader:
leaveElementstartElement

Field Detail

defaultLoaderback to summary
private final Loader defaultLoader

Constructor Detail

XsiNilLoaderback to summary
public XsiNilLoader(Loader defaultLoader)

Method Detail

getExpectedAttributesback to summary
public Collection<QName> getExpectedAttributes()

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

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

Returns a set of tag names expected as possible child elements in this context.

Annotations
@Override
getExpectedChildElementsback to summary
public Collection<QName> getExpectedChildElements()

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

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

Returns a set of tag names expected as possible child elements in this context.

Annotations
@Override
onNilback to summary
protected void onNil(UnmarshallingContext.State state) throws SAXException

Called when xsi:nil='true' was found.

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

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.ProxyLoader.selectLoader.

Doc from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.ProxyLoader.selectLoader.

Picks the loader to delegate to.

Annotations
@Override
@SuppressWarnings:deprecation
org.glassfish.jaxb.runtime.v2.runtime.unmarshaller back to summary

public final Class XsiNilLoader.Array

extends XsiNilLoader
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
Array(Loader core)

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.XsiNilLoader:
getExpectedAttributesgetExpectedChildElementsselectLoader

Constructor Detail

Arrayback to summary
public Array(Loader core)

Method Detail

onNilback to summary
protected void onNil(UnmarshallingContext.State state)

Overrides org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.XsiNilLoader.onNil.

Doc from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.XsiNilLoader.onNil.

Called when xsi:nil='true' was found.

Annotations
@Override
org.glassfish.jaxb.runtime.v2.runtime.unmarshaller back to summary

public final Class XsiNilLoader.Single

extends XsiNilLoader
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Accessor<BeanT, ValueT>

Constructor Summary

AccessConstructor and Description
public
Single(Loader l, Accessor<BeanT, ValueT> acc)

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.XsiNilLoader:
getExpectedAttributesgetExpectedChildElementsselectLoader

Field Detail

accback to summary
private final Accessor<BeanT, ValueT> acc

Constructor Detail

Singleback to summary
public Single(Loader l, Accessor<BeanT, ValueT> acc)

Method Detail

onNilback to summary
protected void onNil(UnmarshallingContext.State state) throws SAXException

Overrides org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.XsiNilLoader.onNil.

Doc from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.XsiNilLoader.onNil.

Called when xsi:nil='true' was found.

Annotations
@Override