Class XsiNilLoader
java.lang.Object
com.sun.xml.bind.v2.runtime.unmarshaller.Loader
com.sun.xml.bind.v2.runtime.unmarshaller.ProxyLoader
com.sun.xml.bind.v2.runtime.unmarshaller.XsiNilLoader
- Direct Known Subclasses:
XsiNilLoader.Array,XsiNilLoader.Single
Looks for xsi:nil='true' and sets the target to null.
Otherwise delegate to another handler.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Field Summary
Fields inherited from class com.sun.xml.bind.v2.runtime.unmarshaller.Loader
expectText -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a set of tag names expected as possible child elements in this context.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 com.sun.xml.bind.v2.runtime.unmarshaller.ProxyLoader
leaveElement, startElementMethods inherited from class com.sun.xml.bind.v2.runtime.unmarshaller.Loader
childElement, expectText, fireAfterUnmarshal, fireBeforeUnmarshal, handleGenericError, handleGenericException, handleGenericException, handleParseConversionException, reportError, reportError, reportUnexpectedChildElement, text
-
Constructor Details
-
XsiNilLoader
-
-
Method Details
-
selectLoader
Description copied from class:ProxyLoaderPicks the loader to delegate to.- Specified by:
selectLoaderin classProxyLoader- Returns:
- never null.
- Throws:
SAXException
-
getExpectedChildElements
Description copied from class:LoaderReturns a set of tag names expected as possible child elements in this context.- Overrides:
getExpectedChildElementsin classLoader
-
getExpectedAttributes
Description copied from class:LoaderReturns a set of tag names expected as possible child elements in this context.- Overrides:
getExpectedAttributesin classLoader
-
onNil
Called when xsi:nil='true' was found.- Throws:
SAXException
-