com.arjuna.common.util.logging
Class VisibilityLevel
java.lang.Object
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:
VIS_NONE = 0x00000000
(no visibility).
VIS_PRIVATE = 0x0001
(only from private methods).
VIS_PROTECTED = 0x0002
(only from protected methods).
VIS_PUBLIC = 0x0004
(only from public methods).
VIS_PACKAGE = 0x0008
(only from package methods).
VIS_ALL = 0xffffffff
(output all visbility levels).
- Since:
- 1.0
- Version:
- $id$
- Author:
- Malik SAHEB - malik.saheb@arjuna.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
VisibilityLevel
public VisibilityLevel()
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.