Package org.simpleframework.xml.stream
Enum Class Mode
- All Implemented Interfaces:
Serializable
,Comparable<Mode>
,Constable
The
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.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
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.
-
-
Constructor Details
-
Mode
private Mode()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-