public enum Mode extends java.lang.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
枚举常量和说明 |
---|
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.
|
public static final Mode DATA
public static final Mode ESCAPE
public static final Mode INHERIT
public static Mode[] values()
for (Mode c : Mode.values()) System.out.println(c);
public static Mode valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值