Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.java.util.logging
Class Level

java.lang.Object
  extended by oracle.adfnmc.java.util.logging.Level

public class Level
extends java.lang.Object

Level objects are used to indicate the level of logging. There are a set of predefined logging levels, each associated with an integer value. Enabling a certain logging level also enables all logging levels with larger values.

The predefined levels in ascending order are FINEST, FINER, FINE, CONFIG, INFO, WARNING, SEVERE. There are two additional predefined levels, which are ALL and OFF. ALL indicates logging all messages, and OFF indicates logging no messages.


Field Summary
static Level ALL
          The ALL level provides all logging messages.
static Level CONFIG
          The CONFIG level indicates a static configuration message.
static Level FINE
          The FINE level provides tracing messages.
static Level FINER
          The FINER level provides more detailed tracing messages.
static Level FINEST
          The FINEST level provides highly detailed tracing messages.
static Level INFO
          The INFO level indicates an informative message.
static Level OFF
          The OFF level provides no logging messages.
static Level SEVERE
          The SEVERE level indicates a severe failure.
static Level WARNING
          The WARNING level indicates a warning.
 
Constructor Summary
protected Level(java.lang.String name, int level)
          Constructs an instance of Level taking the supplied name and level value.
protected Level(java.lang.String name, int level, java.lang.String resourceBundleName)
          Constructs an instance of Level taking the supplied name and level value.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares two Level objects for equality.
 java.lang.String getName()
          Gets the name of this Level.
 java.lang.String getResourceBundleName()
          Gets the name of the resource bundle associated with this Level.
 int hashCode()
          Returns the hash code of this Level object.
 int intValue()
          Gets the integer value indicating this Level.
static Level parse(java.lang.String name)
          Parses a level name into a Level object.
 java.lang.String toString()
          Returns the string representation of this Level object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

OFF

public static final Level OFF
The OFF level provides no logging messages.


SEVERE

public static final Level SEVERE
The SEVERE level indicates a severe failure.


WARNING

public static final Level WARNING
The WARNING level indicates a warning.


INFO

public static final Level INFO
The INFO level indicates an informative message.


CONFIG

public static final Level CONFIG
The CONFIG level indicates a static configuration message.


FINE

public static final Level FINE
The FINE level provides tracing messages.


FINER

public static final Level FINER
The FINER level provides more detailed tracing messages.


FINEST

public static final Level FINEST
The FINEST level provides highly detailed tracing messages.


ALL

public static final Level ALL
The ALL level provides all logging messages.

Constructor Detail

Level

protected Level(java.lang.String name,
                int level)
Constructs an instance of Level taking the supplied name and level value.

Parameters:
name - name of the level
level - an integer value indicating the level
Throws:
java.lang.NullPointerException - if name is null.

Level

protected Level(java.lang.String name,
                int level,
                java.lang.String resourceBundleName)
Constructs an instance of Level taking the supplied name and level value.

Parameters:
name - name of the level
level - an integer value indicating the level
resourceBundleName - the name of the resource bundle to use
Throws:
java.lang.NullPointerException - if name is null.
Method Detail

parse

public static Level parse(java.lang.String name)
                   throws java.lang.IllegalArgumentException
Parses a level name into a Level object.

Parameters:
name - the name of the desired level, which cannot be null
Returns:
a Level object with the specified name
Throws:
java.lang.NullPointerException - if name is null.
java.lang.IllegalArgumentException - if name is not valid.

getName

public java.lang.String getName()
Gets the name of this Level.

Returns:
the name of this Level

getResourceBundleName

public java.lang.String getResourceBundleName()
Gets the name of the resource bundle associated with this Level.

Returns:
the name of the resource bundle associated with this Level

intValue

public final int intValue()
Gets the integer value indicating this Level.

Returns:
the integer value indicating this Level

equals

public boolean equals(java.lang.Object o)
Compares two Level objects for equality. They are considered to be equal if they have the same value.

Overrides:
equals in class java.lang.Object
Parameters:
o - the other object to be compared with
Returns:
true if this object equals to the supplied object, otherwise false

hashCode

public int hashCode()
Returns the hash code of this Level object.

Overrides:
hashCode in class java.lang.Object
Returns:
the hash code of this Level object

toString

public final java.lang.String toString()
Returns the string representation of this Level object. Usually this will include its name.

Overrides:
toString in class java.lang.Object
Returns:
the string representation of this Level object

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.