@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.Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
isSetMethodName |
Modifier and Type | Optional Element and Description |
---|---|
boolean |
emptyNodeRepresentsNull |
XmlParameter[] |
isSetParameters |
XmlMarshalNullRepresentation |
nullRepresentationForXml |
boolean |
xsiNilRepresentsNull |
public abstract java.lang.String isSetMethodName
public abstract boolean xsiNilRepresentsNull
public abstract boolean emptyNodeRepresentsNull
public abstract XmlMarshalNullRepresentation nullRepresentationForXml
public abstract XmlParameter[] isSetParameters
EclipseLink 2.4.2, "build v20130514-5956486" API Reference