net.dpml.metro.info
Class Priority

java.lang.Object
  extended by net.dpml.lang.Enum
      extended by net.dpml.lang.ValuedEnum
          extended by net.dpml.metro.info.Priority
All Implemented Interfaces:
Serializable, Comparable

public final class Priority
extends ValuedEnum

Logging priority enumeration.

Version:
1.2.0
Author:
Digital Product Meta Library
See Also:
Serialized Form

Field Summary
static Priority DEBUG
          DEBUG logging priority.
static Priority ERROR
          ERROR logging priority.
static Priority INFO
          INFO logging priority.
static Priority TRACE
          DEBUG logging priority.
static Priority WARN
          WARN logging priority.
 
Method Summary
static Priority parse(String value)
          Parse the supplied value into a logging priority constant.
 String toString()
          Return a string representation of the priority constant.
static Priority[] values()
          Returns an array of priority enum values.
 
Methods inherited from class net.dpml.lang.ValuedEnum
compareTo, equals, getValue, hashCode, isEqualTo, isGreaterThan, isGreaterThanOrEqual, isLessThan, isLessThanOrEqual
 
Methods inherited from class net.dpml.lang.Enum
getName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR

public static final Priority ERROR
ERROR logging priority.


WARN

public static final Priority WARN
WARN logging priority.


INFO

public static final Priority INFO
INFO logging priority.


DEBUG

public static final Priority DEBUG
DEBUG logging priority.


TRACE

public static final Priority TRACE
DEBUG logging priority.

Method Detail

values

public static Priority[] values()
Returns an array of priority enum values.

Returns:
the priority policies array

parse

public static Priority parse(String value)
                      throws IllegalArgumentException
Parse the supplied value into a logging priority constant.

Parameters:
value - the value to parse
Returns:
the logging priority constant
Throws:
IllegalArgumentException - if the value cannot be mapped to a logging priority enumeration name

toString

public String toString()
Return a string representation of the priority constant.

Overrides:
toString in class ValuedEnum
Returns:
the string value