Enum Class Style

java.lang.Object
java.lang.Enum<Style>
org.apache.maven.shared.utils.logging.Style
All Implemented Interfaces:
Serializable, Comparable<Style>, Constable

enum Style extends Enum<Style>
Configurable message styles.
Since:
3.1.0
  • Enum Constant Details

    • DEBUG

      public static final Style DEBUG
    • INFO

      public static final Style INFO
    • WARNING

      public static final Style WARNING
    • ERROR

      public static final Style ERROR
    • SUCCESS

      public static final Style SUCCESS
    • FAILURE

      public static final Style FAILURE
    • STRONG

      public static final Style STRONG
    • MOJO

      public static final Style MOJO
    • PROJECT

      public static final Style PROJECT
  • Field Details

    • bold

      private final boolean bold
    • bright

      private final boolean bright
    • color

      private final org.fusesource.jansi.Ansi.Color color
    • bgBright

      private final boolean bgBright
    • bgColor

      private final org.fusesource.jansi.Ansi.Color bgColor
  • Constructor Details

    • Style

      private Style(String defaultValue)
  • Method Details

    • values

      public static Style[] 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 Style 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
    • toColor

      private static org.fusesource.jansi.Ansi.Color toColor(String token)
    • apply

      org.fusesource.jansi.Ansi apply(org.fusesource.jansi.Ansi ansi)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Style>