Module com.sun.xml.bind
Class XsiNilLoader
- java.lang.Object
-
- org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader
-
- org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.ProxyLoader
-
- org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.XsiNilLoader
-
- Direct Known Subclasses:
XsiNilLoader.Array,XsiNilLoader.Single
public class XsiNilLoader extends ProxyLoader
Looks for xsi:nil='true' and sets the target to null. Otherwise delegate to another handler.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXsiNilLoader.Arraystatic classXsiNilLoader.Single
-
Field Summary
-
Fields inherited from class org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader
expectText
-
-
Constructor Summary
Constructors Constructor Description XsiNilLoader(Loader defaultLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<QName>getExpectedAttributes()Returns a set of tag names expected as possible child elements in this context.Collection<QName>getExpectedChildElements()Returns a set of tag names expected as possible child elements in this context.protected voidonNil(UnmarshallingContext.State state)Called when xsi:nil='true' was found.protected LoaderselectLoader(UnmarshallingContext.State state, TagName ea)Picks the loader to delegate to.-
Methods inherited from class org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.ProxyLoader
leaveElement, startElement
-
Methods inherited from class org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader
childElement, expectText, fireAfterUnmarshal, fireBeforeUnmarshal, handleGenericError, handleGenericException, handleGenericException, handleParseConversionException, reportError, reportError, reportUnexpectedChildElement, text
-
-
-
-
Constructor Detail
-
XsiNilLoader
public XsiNilLoader(Loader defaultLoader)
-
-
Method Detail
-
selectLoader
protected Loader selectLoader(UnmarshallingContext.State state, TagName ea) throws SAXException
Description copied from class:ProxyLoaderPicks the loader to delegate to.- Specified by:
selectLoaderin classProxyLoader- Returns:
- never null.
- Throws:
SAXException
-
getExpectedChildElements
public Collection<QName> getExpectedChildElements()
Description copied from class:LoaderReturns a set of tag names expected as possible child elements in this context.- Overrides:
getExpectedChildElementsin classLoader
-
getExpectedAttributes
public Collection<QName> getExpectedAttributes()
Description copied from class:LoaderReturns a set of tag names expected as possible child elements in this context.- Overrides:
getExpectedAttributesin classLoader
-
onNil
protected void onNil(UnmarshallingContext.State state) throws SAXException
Called when xsi:nil='true' was found.- Throws:
SAXException
-
-