public enum DebugLevel extends Enum<DebugLevel>
Enum Constant and Description |
---|
ERROR
flags the state where error debugging is enabled.
|
MESSAGE
This state enables debugging of messages, warnings and errors.
|
OFF
flags the disabled debug state.
|
ON
flags the enabled debug state for warnings, errors and messages.
|
WARNING
flags the state where warning debugging is enabled, but message debugging
is disabled.
|
Modifier and Type | Method and Description |
---|---|
int |
compareLevel(DebugLevel o)
Compares the debug level with the specified debug for order.
|
static DebugLevel |
fromLevel(int strLevel)
Get Debug level from its name
|
static DebugLevel |
fromName(String strName)
Get Debug level from its name
|
int |
getLevel()
Get level that can be used for level comparison
|
String |
getName()
Get Name associated with this debug level
|
String |
toString() |
static DebugLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DebugLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DebugLevel OFF
public static final DebugLevel ERROR
ERROR
, error debugging is also disabled.public static final DebugLevel WARNING
WARNING
,
warning debugging is also disabled.public static final DebugLevel MESSAGE
public static final DebugLevel ON
public static DebugLevel[] values()
for (DebugLevel c : DebugLevel.values()) System.out.println(c);
public static DebugLevel 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 DebugLevel fromName(String strName)
strName
- name in stringIllegalArgumentException
- if no debug names are associated to this name,
an illegal argument exception is throwpublic static DebugLevel fromLevel(int strLevel) throws InvalidParameterException
strLevel
- level in stringIllegalArgumentException
- if no debug names are associated to this level,
an illegal argument exception is throwInvalidParameterException
public int getLevel()
public String getName()
public int compareLevel(DebugLevel o)
o
- the object to be compared.public String toString()
toString
in class Enum<DebugLevel>
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.