Forge - Shell API 1.2.0.Final

org.jboss.forge.shell
Enum ShellColor

java.lang.Object
  extended by java.lang.Enum<ShellColor>
      extended by org.jboss.forge.shell.ShellColor
All Implemented Interfaces:
Serializable, Comparable<ShellColor>

public enum ShellColor
extends Enum<ShellColor>

Author:
Mike Brock .

Enum Constant Summary
BLACK
           
BLUE
           
BOLD
           
CYAN
           
GREEN
           
ITALIC
           
MAGENTA
           
NONE
           
RED
           
WHITE
           
YELLOW
           
 
Method Summary
static ShellColor valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ShellColor[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final ShellColor NONE

BLACK

public static final ShellColor BLACK

BLUE

public static final ShellColor BLUE

CYAN

public static final ShellColor CYAN

GREEN

public static final ShellColor GREEN

MAGENTA

public static final ShellColor MAGENTA

RED

public static final ShellColor RED

YELLOW

public static final ShellColor YELLOW

WHITE

public static final ShellColor WHITE

BOLD

public static final ShellColor BOLD

ITALIC

public static final ShellColor ITALIC
Method Detail

values

public static ShellColor[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ShellColor c : ShellColor.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ShellColor valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null

Forge - Shell API 1.2.0.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.