public enum Mode extends Enum<Mode>
Mode
enumeration is used to specify the output
mode for XML text. This is used by the OutputNode
to describe if element text will be escaped or wrapped in a
CDATA block. The mode is a three state object, the third of the
states indicates whether an explicit state has been set or not.
If a specific state has not been set then the node will inherit
its output mode from the last parent to have it set.OutputNode
Enum Constant and Description |
---|
DATA
Indicates that data written will be within a CDATA block.
|
ESCAPE
Indicates that data written will be escaped if required.
|
INHERIT
Indicates that the mode will be inherited from its parent.
|
Modifier and Type | Method and Description |
---|---|
static Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Mode[] values()
for (Mode c : Mode.values()) System.out.println(c);
public static Mode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null