Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

oracle.jdeveloper.audit.java
Class Visibility

java.lang.Object
  extended by oracle.jdeveloper.audit.java.Visibility
All Implemented Interfaces:
java.lang.Comparable, TypeSafeEnumeration

public class Visibility
extends java.lang.Object
implements java.lang.Comparable, TypeSafeEnumeration

A type-safe enumeration of Java access modifiers which map to the constants in Modifier. The comparison order is: PRIVATE < DEFAULT < PROTECTED < PUBLIC.


Field Summary
static Visibility DEFAULT
          Visibility "default" (aka "package private") corresponding to 0.
static Visibility PRIVATE
          Visibility private corresponding to Modifier.PRIVATE.
static Visibility PROTECTED
          Visibility protected corresponding to Modifier.PROTECTED.
static Visibility PUBLIC
          Visibility protected corresponding to Modifier.PROTECTED.
 
Method Summary
 int compareTo(java.lang.Object object)
          Compares this visibility with another.
 int getModifier()
          Gets the Modifier integer representing this visibility.
 java.lang.String toString()
          Gets the string identifying this visibility: "private", "default", "protected', or "public".
static Visibility valueOf(int modifiers)
          Gets the visibility corresponding to a Modifier integer.
static Visibility valueOf(java.lang.String string)
          Gets the visibility corresponding to a string, or null if the string is not one of "private", "default", "protected", or "public".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PRIVATE

public static final Visibility PRIVATE
Visibility private corresponding to Modifier.PRIVATE.


DEFAULT

public static final Visibility DEFAULT
Visibility "default" (aka "package private") corresponding to 0.


PROTECTED

public static final Visibility PROTECTED
Visibility protected corresponding to Modifier.PROTECTED.


PUBLIC

public static final Visibility PUBLIC
Visibility protected corresponding to Modifier.PROTECTED.

Method Detail

toString

public java.lang.String toString()
Gets the string identifying this visibility: "private", "default", "protected', or "public".

Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(java.lang.Object object)
Compares this visibility with another. A visibility is less than another if it is less visible than the other.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
object - A visibility.
Throws:
java.lang.ClassCastException - if object is not a Visibility.

valueOf

public static Visibility valueOf(java.lang.String string)
Gets the visibility corresponding to a string, or null if the string is not one of "private", "default", "protected", or "public".


valueOf

public static Visibility valueOf(int modifiers)
Gets the visibility corresponding to a Modifier integer. If the integer indicates more than one visibility, the most visible one is returned (e.g. for Modifier.PUBLIC | Modifier.PRIVATE, PUBLIC is returned).


getModifier

public int getModifier()
Gets the Modifier integer representing this visibility. Gets 0 for DEFAULT.


Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.