public enum XMLNullRepresentationType extends java.lang.Enum<XMLNullRepresentationType>
Flag | Description |
---|---|
XSI_NIL | Nillable: Write out an xsi:nil="true" attribute. |
ABSENT_NODE(default) | Optional: Write out no node. |
EMPTY_NODE | Required: Write out an empty <node/> or node="" node. |
AbstractNullPolicy
Enum Constant and Description |
---|
ABSENT_NODE
Do not write out anything (default optional policy behavior).
|
EMPTY_NODE
Write out an empty node.
|
XSI_NIL
Write out an xsi:nil="true" attribute.
|
Modifier and Type | Method and Description |
---|---|
static XMLNullRepresentationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static XMLNullRepresentationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XMLNullRepresentationType XSI_NIL
public static final XMLNullRepresentationType ABSENT_NODE
public static final XMLNullRepresentationType EMPTY_NODE
public static XMLNullRepresentationType[] values()
for (XMLNullRepresentationType c : XMLNullRepresentationType.values()) System.out.println(c);
public static XMLNullRepresentationType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null