org.ops4j.pax.logging.spi
Interface PaxLevel

All Known Implementing Classes:
PaxLevelImpl

public interface PaxLevel


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.
 

Method Detail

isGreaterOrEqual

boolean isGreaterOrEqual(PaxLevel r)
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.

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

int toInt()
Returns the integer representation of this level.

Returns:
the integer representation of this level.

getSyslogEquivalent

int getSyslogEquivalent()
Return the syslog equivalent of this priority as an integer.

Returns:
the syslog equivalent of this priority as an integer.


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