Package cdc.util.xml
Enum XmlUtils.EscapingPolicy
- java.lang.Object
-
- java.lang.Enum<XmlUtils.EscapingPolicy>
-
- cdc.util.xml.XmlUtils.EscapingPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<XmlUtils.EscapingPolicy>
- Enclosing class:
- XmlUtils
public static enum XmlUtils.EscapingPolicy extends Enum<XmlUtils.EscapingPolicy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ESCAPE_ALWAYS
ESCAPE_IF_NECESSARY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XmlUtils.EscapingPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static XmlUtils.EscapingPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ESCAPE_IF_NECESSARY
public static final XmlUtils.EscapingPolicy ESCAPE_IF_NECESSARY
-
ESCAPE_ALWAYS
public static final XmlUtils.EscapingPolicy ESCAPE_ALWAYS
-
-
Method Detail
-
values
public static XmlUtils.EscapingPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (XmlUtils.EscapingPolicy c : XmlUtils.EscapingPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XmlUtils.EscapingPolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-