Enum Class FormatElementCategory
- All Implemented Interfaces:
Serializable,Comparable<FormatElementCategory>,java.lang.constant.Constable
Format element catagory.
- Author:
- Angelo ZERR
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIn the ignore space category, all whitespace is considered insignificant.In the mixed content category, a single whitespace between text characters is considered significant and all other spaces are considered insignificant.In the normalize space category, a single whitespace character between character strings is considered significant and all other spaces are considered insignificant.In the preserve space category, all whitespace in the element is regarded as significant. -
Method Summary
Modifier and TypeMethodDescriptionstatic FormatElementCategoryReturns the enum constant of this class with the specified name.static FormatElementCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IgnoreSpace
In the ignore space category, all whitespace is considered insignificant. This generally applies to content that consists only of elements nested inside other elements, with no text content. -
NormalizeSpace
In the normalize space category, a single whitespace character between character strings is considered significant and all other spaces are considered insignificant. Therefore, all consecutive whitespaces will be replaced with a single space. This generally applies to elements that contain text content only. -
MixedContent
In the mixed content category, a single whitespace between text characters is considered significant and all other spaces are considered insignificant. -
PreserveSpace
In the preserve space category, all whitespace in the element is regarded as significant. No changes are made to the spaces in elements in this category. However, child elements may be in another category, and may be treated differently. Attribute values are always in the preserve space category. The spaces between attributes in an element tag are always in the default space category.
-
-
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
-