|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<CliStyleHandling>
net.sf.mmm.util.cli.api.CliStyleHandling
public enum CliStyleHandling
This enum contains the available ways to handle a specific CLI-style.
CliStyle.optionNameNotAcceptedByFilter(),
CliStyle.optionSyntaxAssignment(),
CliStyle.optionDuplicated(),
CliStyle.modeUndefined()| Enum Constant Summary | |
|---|---|
DEBUG
Log a debug message on occurrence. |
|
EXCEPTION
Cause an exception on occurrence. |
|
OK
Accept the according style as normal. |
|
WARNING
Log a warning on occurrence. |
|
| Method Summary | |
|---|---|
abstract void |
handle(org.slf4j.Logger logger,
RuntimeException exception)
This method performs the handling of the anomaly represented by the given exception. |
static CliStyleHandling |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CliStyleHandling[] |
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 |
|---|
public static final CliStyleHandling OK
public static final CliStyleHandling DEBUG
public static final CliStyleHandling WARNING
public static final CliStyleHandling EXCEPTION
| Method Detail |
|---|
public static CliStyleHandling[] values()
for (CliStyleHandling c : CliStyleHandling.values()) System.out.println(c);
public static CliStyleHandling valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
public abstract void handle(org.slf4j.Logger logger,
RuntimeException exception)
exception.OK.
logger - is the Logger potentially used to log the exception
(-message).exception - informs about the anomaly.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||