com.arjuna.common.util.logging
Class VisibilityLevel

java.lang.Object
  extended by com.arjuna.common.util.logging.VisibilityLevel

public class VisibilityLevel
extends java.lang.Object

The VisibilityLevel class provides default finer visibility value to determine if finer debugging is allowed or not. The various levels of common debugging that are available:

Since:
1.0
Version:
$id$
Author:
Malik SAHEB - malik.saheb@arjuna.com

Field Summary
static long VIS_ALL
           
static long VIS_NONE
           
static long VIS_PACKAGE
           
static long VIS_PRIVATE
           
static long VIS_PROTECTED
           
static long VIS_PUBLIC
           
 
Constructor Summary
VisibilityLevel()
           
 
Method Summary
 long getLevel(java.lang.String level)
           
 java.lang.String printString(long level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIS_NONE

public static final long VIS_NONE
See Also:
Constant Field Values

VIS_PRIVATE

public static final long VIS_PRIVATE
See Also:
Constant Field Values

VIS_PROTECTED

public static final long VIS_PROTECTED
See Also:
Constant Field Values

VIS_PUBLIC

public static final long VIS_PUBLIC
See Also:
Constant Field Values

VIS_PACKAGE

public static final long VIS_PACKAGE
See Also:
Constant Field Values

VIS_ALL

public static final long VIS_ALL
See Also:
Constant Field Values
Constructor Detail

VisibilityLevel

public VisibilityLevel()
Method Detail

getLevel

public long getLevel(java.lang.String level)
Parameters:
level - The string representation of the visibility level, e.g. "VIS_PUBLIC"
Returns:
the VisibilityCode value associted with the provided string representation

printString

public java.lang.String printString(long level)
Parameters:
level - The value of the visibility level
Returns:
the string representation of the visibility level. Note, this string is intended only for debugging purposes, and cannot be fed back into the debug system to obtain the visibility level that it represents.