public enum LoggingLevel extends Enum<LoggingLevel>
GeneralPropertySet.LOGGING.| Enum Constant and Description |
|---|
HIGH
High amount of log output, e.g.
|
LOW
Low amount of log output, e.g.
|
MEDIUM
Medium amount of log output, e.g.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equalsLevel(String level)
Tests whether the specified logging level equals this enum constant.
|
String |
getLevel()
Gets the string value of this logging level for use as a value of the
GeneralPropertySet.LOGGING property. |
static LoggingLevel |
toLevel(String level)
Gets the enum constant matching the specified logging level.
|
String |
toString()
Gets the string value of this logging level for use as a value of the
GeneralPropertySet.LOGGING property. |
static LoggingLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoggingLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoggingLevel HIGH
public static final LoggingLevel MEDIUM
public static final LoggingLevel LOW
public static LoggingLevel[] values()
for (LoggingLevel c : LoggingLevel.values()) System.out.println(c);
public static LoggingLevel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic static LoggingLevel toLevel(String level)
valueOf(String) this method matches the level name case-insensitively.level - The logging level.null.IllegalArgumentException - If the specified logging level is invalid.public boolean equalsLevel(String level)
level - The logging level, may be null.true if the specified logging level equals this enum constant, false
otherwise.public String getLevel()
GeneralPropertySet.LOGGING property.public String toString()
GeneralPropertySet.LOGGING property.toString in class Enum<LoggingLevel>Copyright © 2004-2013 Codehaus. All Rights Reserved.