@Target(value={FIELD,METHOD}) @Retention(value=RUNTIME) public @interface XmlIsSetNullPolicy
This annotation provides the user with a mechanism to customise the way that EclipseLink handles the reading and writing of null values. This version of NullPolicy makes use of an isSet method to differentiate between values that were explicitly set to null vs values which are null due to being unset. In this case the marshal behaviour specified by the nullRepresentationForXml will only be used if the property was set. A set is only performed during unmarshal if an element was present in the document. The following values can be specified:
"<element/>"
should be unmarshalled to as null in the object model.XmlNullPolicy
,
XmlMarshalNullRepresentation
,
XmlParameter
Modifier and Type | Required Element and Description |
---|---|
String |
isSetMethodName |
Modifier and Type | Optional Element and Description |
---|---|
boolean |
emptyNodeRepresentsNull |
XmlParameter[] |
isSetParameters |
XmlMarshalNullRepresentation |
nullRepresentationForXml |
boolean |
xsiNilRepresentsNull |
public abstract String isSetMethodName
public abstract XmlMarshalNullRepresentation nullRepresentationForXml
public abstract XmlParameter[] isSetParameters
Copyright © 2007–2020 Eclipse.org - EclipseLink Project. All rights reserved.