public enum XmlEscapeType extends Enum<XmlEscapeType>
Types of escape operations to be performed on XML text:
XmlEscapeLevel
), and default to using Decimal Character References
for escaped characters that do not have an associated CER.XmlEscapeLevel
), and default to using Hexadecimal Character References
for escaped characters that do not have an associated CER.
For further information, see the Glossary and the References sections at the
documentation for the XmlEscape
class.
Enum Constant and Description |
---|
CHARACTER_ENTITY_REFERENCES_DEFAULT_TO_DECIMAL
Use Character Entity References if possible, default to Decimal Character References.
|
CHARACTER_ENTITY_REFERENCES_DEFAULT_TO_HEXA
Use Character Entity Referencess if possible, default to Hexadecimal Character References.
|
DECIMAL_REFERENCES
Always use Decimal Character References (no CERs will be used).
|
HEXADECIMAL_REFERENCES
Always use Hexadecimal Character References (no CERs will be used).
|
Modifier and Type | Method and Description |
---|---|
static XmlEscapeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XmlEscapeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XmlEscapeType CHARACTER_ENTITY_REFERENCES_DEFAULT_TO_DECIMAL
public static final XmlEscapeType CHARACTER_ENTITY_REFERENCES_DEFAULT_TO_HEXA
public static final XmlEscapeType DECIMAL_REFERENCES
public static final XmlEscapeType HEXADECIMAL_REFERENCES
public static XmlEscapeType[] values()
for (XmlEscapeType c : XmlEscapeType.values()) System.out.println(c);
public static XmlEscapeType 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 nullCopyright © 2015 The UNBESCAPE team. All rights reserved.