Class Level

java.lang.Object
org.apache.uima.util.Level

public class Level extends Object
Provides the message level constants for logging and tracing
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Level
    message level "ALL"
    static final int
    level value for level "ALL"
    static final Level
    message level "CONFIG"
    static final int
    level value for level "CONFIG"
    static final Level
     
    static final int
    level value for level "DEBUG"
    static final Level
     
    static final int
    level value for level "ERROR"
    static final Level
    message level "FINE"
    static final int
    level value for level "FINE"
    static final Level
    message level "FINER"
    static final int
    level value for level "FINER"
    static final Level
    message level "FINEST"
    static final int
    level value for level "FINEST"
    static final Level
    message level "INFO"
    static final int
    level value for level "INFO"
    static final Level
    message level "OFF"
    static final int
    level value for level "OFF"
    static final Level
    message level "SEVERE"
    static final int
    level value for level "SEVERE"
    static final Level
     
    static final int
    level value for level "TRACE"
    static final Level
     
    static final int
    level value for level "WARN"
    static final Level
    message level "WARNING"
    static final int
    level value for level "WARNING"
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Level(int level, String levelText)
    Instantiate a new level object.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    boolean
    method isGreaterOrEqual() returns true if the argument level is greater or equal to the specified level.
    boolean
    method isOn() returns true if the message level is not OFF
    final int
    Returns the integer representation of this level.
    final String
    Returns the string representation of this priority.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • OFF_INT

      public static final int OFF_INT
      level value for level "OFF"
      See Also:
    • SEVERE_INT

      public static final int SEVERE_INT
      level value for level "SEVERE"
      See Also:
    • WARNING_INT

      public static final int WARNING_INT
      level value for level "WARNING"
      See Also:
    • INFO_INT

      public static final int INFO_INT
      level value for level "INFO"
      See Also:
    • CONFIG_INT

      public static final int CONFIG_INT
      level value for level "CONFIG"
      See Also:
    • FINE_INT

      public static final int FINE_INT
      level value for level "FINE"
      See Also:
    • FINER_INT

      public static final int FINER_INT
      level value for level "FINER"
      See Also:
    • FINEST_INT

      public static final int FINEST_INT
      level value for level "FINEST"
      See Also:
    • ALL_INT

      public static final int ALL_INT
      level value for level "ALL"
      See Also:
    • ERROR_INT

      public static final int ERROR_INT
      level value for level "ERROR"
      See Also:
    • WARN_INT

      public static final int WARN_INT
      level value for level "WARN"
      See Also:
    • DEBUG_INT

      public static final int DEBUG_INT
      level value for level "DEBUG"
      See Also:
    • TRACE_INT

      public static final int TRACE_INT
      level value for level "TRACE"
      See Also:
    • OFF

      public static final Level OFF
      message level "OFF"
    • SEVERE

      public static final Level SEVERE
      message level "SEVERE"
    • ERROR

      public static final Level ERROR
    • WARNING

      public static final Level WARNING
      message level "WARNING"
    • WARN

      public static final Level WARN
    • INFO

      public static final Level INFO
      message level "INFO"
    • CONFIG

      public static final Level CONFIG
      message level "CONFIG"
    • FINE

      public static final Level FINE
      message level "FINE"
    • DEBUG

      public static final Level DEBUG
    • FINER

      public static final Level FINER
      message level "FINER"
    • TRACE

      public static final Level TRACE
    • FINEST

      public static final Level FINEST
      message level "FINEST"
    • ALL

      public static final Level ALL
      message level "ALL"
  • Constructor Details

    • Level

      protected Level(int level, String levelText)
      Instantiate a new level object.
      Parameters:
      level - level value
      levelText - level name
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      See Also:
    • isOn

      public boolean isOn()
      method isOn() returns true if the message level is not OFF
      Returns:
      boolean true if the message level is less than OFF
    • isGreaterOrEqual

      public boolean isGreaterOrEqual(Level r)
      method isGreaterOrEqual() returns true if the argument level is greater or equal to the specified level.
      Parameters:
      r - argument level passed to the method
      Returns:
      boolean - true if argument level is greater of equal to the specified level
    • toString

      public final String toString()
      Returns the string representation of this priority.
      Overrides:
      toString in class Object
      See Also:
    • toInteger

      public final int toInteger()
      Returns the integer representation of this level.
      Returns:
      int - level value