Top Description Methods
org.eclipse.persistence.oxm.annotations

public @Interface XmlIsSetNullPolicy

extends Annotation
Annotations
@Target:FIELD, METHOD
@Retention:RUNTIME
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

Purpose: Provide a means of using annotations to customise the handling of null values and their xml representation.

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:

See Also
XmlNullPolicy, XmlMarshalNullRepresentation, XmlParameter

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
public XmlParameter[]
public XmlMarshalNullRepresentation
public boolean
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

emptyNodeRepresentsNullback to summary
public boolean emptyNodeRepresentsNull()
isSetMethodNameback to summary
public String isSetMethodName()
isSetParametersback to summary
public XmlParameter[] isSetParameters()
nullRepresentationForXmlback to summary
public XmlMarshalNullRepresentation nullRepresentationForXml()
xsiNilRepresentsNullback to summary
public boolean xsiNilRepresentsNull()