Enum Class XMQColor
- All Implemented Interfaces:
Serializable, Comparable<XMQColor>, Constable
The different token colors used when coloring (answering to the
XMQTheme pre/post strings) while printing XMQ. This mirrors the C
XMQColor enum: each color corresponds to one XMQThemeStrings
field of the XMQTheme.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe ( that opens the attributes.The ) that closes the attributes.The name of an attribute.The namespace prefix of an attribute.An entity inside a compound attribute value.A quote inside a compound attribute value.An entity as an attribute value.A quoted attribute value.An unquoted attribute value.The { that opens an element body.The } that closes an element body.A comment.The continued part of a comment that is closed and then continued with an asterisk.The ( that opens a compound value.The ) that closes a compound value.The name of an element with a value.The name of an element with children.The namespace prefix of an element.An entity inside a compound element value.A quote inside a compound element value.An entity as an element value.A quoted element value.An unquoted element value.An entity, eg .The = between a key and its value.The whitespace that indents a line.The colon between a namespace prefix and a name.A namespace declaration, xmlns or xmlns:prefix.The xsl namespace prefix, which has its own color.A quoted text.Unicode whitespace other than space and newline, shown visibly.Plain whitespace. -
Method Summary
-
Enum Constant Details
-
COLOR_whitespace
Plain whitespace. -
COLOR_unicode_whitespace
Unicode whitespace other than space and newline, shown visibly. -
COLOR_indentation_whitespace
The whitespace that indents a line. -
COLOR_equals
The = between a key and its value. -
COLOR_brace_left
The { that opens an element body. -
COLOR_brace_right
The } that closes an element body. -
COLOR_apar_left
The ( that opens the attributes. -
COLOR_apar_right
The ) that closes the attributes. -
COLOR_cpar_left
The ( that opens a compound value. -
COLOR_cpar_right
The ) that closes a compound value. -
COLOR_quote
A quoted text. -
COLOR_entity
An entity, eg . -
COLOR_comment
A comment. -
COLOR_comment_continuation
The continued part of a comment that is closed and then continued with an asterisk. -
COLOR_ns_colon
The colon between a namespace prefix and a name. -
COLOR_element_ns
The namespace prefix of an element. -
COLOR_element_name
The name of an element with children. -
COLOR_element_key
The name of an element with a value. -
COLOR_element_value_text
An unquoted element value. -
COLOR_element_value_quote
A quoted element value. -
COLOR_element_value_entity
An entity as an element value. -
COLOR_element_value_compound_quote
A quote inside a compound element value. -
COLOR_element_value_compound_entity
An entity inside a compound element value. -
COLOR_attr_ns
The namespace prefix of an attribute. -
COLOR_attr_key
The name of an attribute. -
COLOR_attr_value_text
An unquoted attribute value. -
COLOR_attr_value_quote
A quoted attribute value. -
COLOR_attr_value_entity
An entity as an attribute value. -
COLOR_attr_value_compound_quote
A quote inside a compound attribute value. -
COLOR_attr_value_compound_entity
An entity inside a compound attribute value. -
COLOR_ns_declaration
A namespace declaration, xmlns or xmlns:prefix. -
COLOR_ns_override_xsl
The xsl namespace prefix, which has its own color.
-
-
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
-