Enum XmlMarshalNullRepresentation

java.lang.Object
java.lang.Enum<XmlMarshalNullRepresentation>
org.eclipse.persistence.oxm.annotations.XmlMarshalNullRepresentation
All Implemented Interfaces:
Serializable, Comparable<XmlMarshalNullRepresentation>

public enum XmlMarshalNullRepresentation extends Enum<XmlMarshalNullRepresentation>
Purpose: This enumeration provides a means of specifying how a null value in a java object should be marshalled to XML. The possible options are:
  • XSI_NIL - This means that the element should be written out with an xsi:nil attribute. Example: <element xsi:nil="true"/>
  • EMPTY_NODE - This indicates that the element should be written out to xml with no contents Example: <element />
  • ABSENT_NODE - Absent node means that no element should be written to XML if null is encountered