Package net.shibboleth.ext.spring.cli
Enum AbstractCommandLine.TerminalCodes
- java.lang.Object
-
- java.lang.Enum<AbstractCommandLine.TerminalCodes>
-
- net.shibboleth.ext.spring.cli.AbstractCommandLine.TerminalCodes
-
- All Implemented Interfaces:
Serializable,Comparable<AbstractCommandLine.TerminalCodes>
- Enclosing class:
- AbstractCommandLine<T extends CommandLineArguments>
public static enum AbstractCommandLine.TerminalCodes extends Enum<AbstractCommandLine.TerminalCodes>
Terminal codes.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateTerminalCodes(String ansi)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcode(CommandLineArguments args)Gets the relevant code for the enum value.static AbstractCommandLine.TerminalCodesvalueOf(String name)Returns the enum constant of this type with the specified name.static AbstractCommandLine.TerminalCodes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESET
public static final AbstractCommandLine.TerminalCodes RESET
Reset.
-
BLACK
public static final AbstractCommandLine.TerminalCodes BLACK
Black.
-
RED
public static final AbstractCommandLine.TerminalCodes RED
Red.
-
GREEN
public static final AbstractCommandLine.TerminalCodes GREEN
Green.
-
YELLOW
public static final AbstractCommandLine.TerminalCodes YELLOW
Yellow.
-
BLUE
public static final AbstractCommandLine.TerminalCodes BLUE
Blue.
-
PURPLE
public static final AbstractCommandLine.TerminalCodes PURPLE
Purple.
-
CYAN
public static final AbstractCommandLine.TerminalCodes CYAN
Cyan.
-
WHITE
public static final AbstractCommandLine.TerminalCodes WHITE
White.
-
-
Method Detail
-
values
public static AbstractCommandLine.TerminalCodes[] 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 (AbstractCommandLine.TerminalCodes c : AbstractCommandLine.TerminalCodes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractCommandLine.TerminalCodes 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 nameNullPointerException- if the argument is null
-
code
public String code(@Nonnull CommandLineArguments args)
Gets the relevant code for the enum value.- Parameters:
args- CLI arguments- Returns:
- code string value
-
-