EclipseLink 2.2.0, build 'v20110202-r8913' API Reference

org.eclipse.persistence.oxm.annotations
Annotation Type XmlNullPolicy


@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface XmlNullPolicy

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. The following values can be specified:

See Also:
XmlNullPolicy, XmlMarshalNullRepresentation

Optional Element Summary
 boolean emptyNodeRepresentsNull
           
 boolean isSetPerformedForAbsentNode
           
 XmlMarshalNullRepresentation nullRepresentationForXml
           
 boolean xsiNilRepresentsNull
           
 

xsiNilRepresentsNull

public abstract boolean xsiNilRepresentsNull
Default:
false

emptyNodeRepresentsNull

public abstract boolean emptyNodeRepresentsNull
Default:
false

isSetPerformedForAbsentNode

public abstract boolean isSetPerformedForAbsentNode
Default:
true

nullRepresentationForXml

public abstract XmlMarshalNullRepresentation nullRepresentationForXml
Default:
org.eclipse.persistence.oxm.annotations.XmlMarshalNullRepresentation.ABSENT_NODE

EclipseLink 2.2.0, build 'v20110202-r8913' API Reference