Package org.apache.daffodil.api.infoset
Enum Class XMLTextEscapeStyle
- All Implemented Interfaces:
Serializable
,Comparable<XMLTextEscapeStyle>
,Constable
XMLTextEscapeStyles for determining whether to wrap info in CDATA tags
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe text of xs:string elements are wrapped in CDATA tags if the string contains special characters (quotation mark, ampersand, less-than, greater-than) or whitespaceSpecial characters (quotation mark, ampersand, less-than, greater-than) in the text of xs:string elements are escaped, while non-special characters are written as is. -
Method Summary
Modifier and TypeMethodDescriptionstatic XMLTextEscapeStyle
Returns the enum constant of this class with the specified name.static XMLTextEscapeStyle[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Standard
Special characters (quotation mark, ampersand, less-than, greater-than) in the text of xs:string elements are escaped, while non-special characters are written as is. -
CDATA
The text of xs:string elements are wrapped in CDATA tags if the string contains special characters (quotation mark, ampersand, less-than, greater-than) or whitespace
-
-
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
-