org.huihoo.jfox.ejb.server.logging
Class XPriority

java.lang.Object
  |
  +--Priority
        |
        +--org.huihoo.jfox.ejb.server.logging.XPriority

public class XPriority
extends Priority

See Also:
Serialized Form

Field Summary
static XPriority TRACE
          The TRACE priority object singleton
static int TRACE_INT
          The integer representation of the priority, (Priority.DEBUG_INT - 100)
static java.lang.String TRACE_STR
          The string name of the trace priority.
 
Method Summary
static Priority toPriority(int i, Priority defaultPriority)
          Convert an integer passed as argument to a priority.
static Priority toPriority(java.lang.String name)
          Convert an integer passed as argument to a priority.
static Priority toPriority(java.lang.String name, Priority defaultPriority)
          Convert an integer passed as argument to a priority.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRACE_INT

public static final int TRACE_INT
The integer representation of the priority, (Priority.DEBUG_INT - 100)


TRACE_STR

public static java.lang.String TRACE_STR
The string name of the trace priority.


TRACE

public static final XPriority TRACE
The TRACE priority object singleton

Method Detail

toPriority

public static Priority toPriority(java.lang.String name,
                                  Priority defaultPriority)
Convert an integer passed as argument to a priority. If the conversion fails, then this method returns the specified default.

Returns:
the Priority object for name if one exists, defaultPriority otherwize.

toPriority

public static Priority toPriority(java.lang.String name)
Convert an integer passed as argument to a priority.

Returns:
the Priority object for name if one exists

toPriority

public static Priority toPriority(int i,
                                  Priority defaultPriority)
Convert an integer passed as argument to a priority. If the conversion fails, then this method returns the specified default.

Returns:
the Priority object for i if one exists, defaultPriority otherwize.