Enum Class XMQColor

java.lang.Object
java.lang.Enum<XMQColor>
org.libxmq.imp.XMQColor
All Implemented Interfaces:
Serializable, Comparable<XMQColor>, Constable

public enum XMQColor extends Enum<XMQColor>
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.
  • Enum Constant Details

    • COLOR_whitespace

      public static final XMQColor COLOR_whitespace
      Plain whitespace.
    • COLOR_unicode_whitespace

      public static final XMQColor COLOR_unicode_whitespace
      Unicode whitespace other than space and newline, shown visibly.
    • COLOR_indentation_whitespace

      public static final XMQColor COLOR_indentation_whitespace
      The whitespace that indents a line.
    • COLOR_equals

      public static final XMQColor COLOR_equals
      The = between a key and its value.
    • COLOR_brace_left

      public static final XMQColor COLOR_brace_left
      The { that opens an element body.
    • COLOR_brace_right

      public static final XMQColor COLOR_brace_right
      The } that closes an element body.
    • COLOR_apar_left

      public static final XMQColor COLOR_apar_left
      The ( that opens the attributes.
    • COLOR_apar_right

      public static final XMQColor COLOR_apar_right
      The ) that closes the attributes.
    • COLOR_cpar_left

      public static final XMQColor COLOR_cpar_left
      The ( that opens a compound value.
    • COLOR_cpar_right

      public static final XMQColor COLOR_cpar_right
      The ) that closes a compound value.
    • COLOR_quote

      public static final XMQColor COLOR_quote
      A quoted text.
    • COLOR_entity

      public static final XMQColor COLOR_entity
      An entity, eg &#10;.
    • COLOR_comment

      public static final XMQColor COLOR_comment
      A comment.
    • COLOR_comment_continuation

      public static final XMQColor COLOR_comment_continuation
      The continued part of a comment that is closed and then continued with an asterisk.
    • COLOR_ns_colon

      public static final XMQColor COLOR_ns_colon
      The colon between a namespace prefix and a name.
    • COLOR_element_ns

      public static final XMQColor COLOR_element_ns
      The namespace prefix of an element.
    • COLOR_element_name

      public static final XMQColor COLOR_element_name
      The name of an element with children.
    • COLOR_element_key

      public static final XMQColor COLOR_element_key
      The name of an element with a value.
    • COLOR_element_value_text

      public static final XMQColor COLOR_element_value_text
      An unquoted element value.
    • COLOR_element_value_quote

      public static final XMQColor COLOR_element_value_quote
      A quoted element value.
    • COLOR_element_value_entity

      public static final XMQColor COLOR_element_value_entity
      An entity as an element value.
    • COLOR_element_value_compound_quote

      public static final XMQColor COLOR_element_value_compound_quote
      A quote inside a compound element value.
    • COLOR_element_value_compound_entity

      public static final XMQColor COLOR_element_value_compound_entity
      An entity inside a compound element value.
    • COLOR_attr_ns

      public static final XMQColor COLOR_attr_ns
      The namespace prefix of an attribute.
    • COLOR_attr_key

      public static final XMQColor COLOR_attr_key
      The name of an attribute.
    • COLOR_attr_value_text

      public static final XMQColor COLOR_attr_value_text
      An unquoted attribute value.
    • COLOR_attr_value_quote

      public static final XMQColor COLOR_attr_value_quote
      A quoted attribute value.
    • COLOR_attr_value_entity

      public static final XMQColor COLOR_attr_value_entity
      An entity as an attribute value.
    • COLOR_attr_value_compound_quote

      public static final XMQColor COLOR_attr_value_compound_quote
      A quote inside a compound attribute value.
    • COLOR_attr_value_compound_entity

      public static final XMQColor COLOR_attr_value_compound_entity
      An entity inside a compound attribute value.
    • COLOR_ns_declaration

      public static final XMQColor COLOR_ns_declaration
      A namespace declaration, xmlns or xmlns:prefix.
    • COLOR_ns_override_xsl

      public static final XMQColor COLOR_ns_override_xsl
      The xsl namespace prefix, which has its own color.
  • Method Details

    • values

      public static XMQColor[] 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

      public static XMQColor valueOf(String name)
      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 name
      NullPointerException - if the argument is null