org.ops4j.pax.logging.service.internal
Class PaxLevelImpl

java.lang.Object
  extended by org.ops4j.pax.logging.service.internal.PaxLevelImpl
All Implemented Interfaces:
PaxLevel

public class PaxLevelImpl
extends java.lang.Object
implements PaxLevel


Constructor Summary
PaxLevelImpl(Level delegate)
           
 
Method Summary
 int getSyslogEquivalent()
          Return the syslog equivalent of this priority as an integer.
 boolean isGreaterOrEqual(PaxLevel r)
          Returns true if this level has a higher or equal level than the level passed as argument, false otherwise.
 int toInt()
          Returns the integer representation of this level.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PaxLevelImpl

public PaxLevelImpl(Level delegate)
Method Detail

isGreaterOrEqual

public boolean isGreaterOrEqual(PaxLevel r)
Description copied from interface: PaxLevel
Returns true if this level has a higher or equal level than the level passed as argument, false otherwise.

You should think twice before overriding the default implementation of isGreaterOrEqual method.

Specified by:
isGreaterOrEqual in interface PaxLevel
Parameters:
r - the PaxLevel to compare with.
Returns:
true if this level has a higher or equal level than the level passed as argument, false otherwise.

toInt

public int toInt()
Description copied from interface: PaxLevel
Returns the integer representation of this level.

Specified by:
toInt in interface PaxLevel
Returns:
the integer representation of this level.

getSyslogEquivalent

public int getSyslogEquivalent()
Description copied from interface: PaxLevel
Return the syslog equivalent of this priority as an integer.

Specified by:
getSyslogEquivalent in interface PaxLevel
Returns:
the syslog equivalent of this priority as an integer.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006-2010 OPS4J - Open Participation Software for Java. All Rights Reserved.