oracle.jdeveloper.audit.java
Class SetVisibilityTransform
java.lang.Object
oracle.jdeveloper.audit.transform.Transform
oracle.jdeveloper.audit.java.SetVisibilityTransform
- public class SetVisibilityTransform
- extends Transform
Transform to set the visibility of a class, method, or field.
Method Summary |
void |
apply()
Applies this transform. |
Visibility |
getVisibility()
|
boolean |
isApplicable()
Gets whether applying this transform is likely to succeed. |
boolean |
isApplied()
Gets whether this transform appears to have been already applied (whether because apply was invoked or because another agent caused the same effect). |
void |
setVisibility(Visibility visibility)
Sets the visibility. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetVisibilityTransform
public SetVisibilityTransform(Visibility visibility)
getVisibility
public Visibility getVisibility()
setVisibility
public void setVisibility(Visibility visibility)
- Sets the visibility.
isApplicable
public boolean isApplicable()
- Description copied from class:
Transform
- Gets whether applying this transform is likely to succeed. The framework invokes this method inside a read lock on the document containing the transform location. The default
Transform
implementation returns true. If a subclass can test for situations where apply is sure to fail, it can override this method to make the test and return false if it fails. Note that the Audit framework handles the case of unmodifiable documents.
-
- Overrides:
isApplicable
in class Transform
apply
public void apply()
- Description copied from class:
Transform
- Applies this transform. The framework invokes this method inside a write lock on the document containing the transform location, only if
Transform.isApplicable()
returns true and Transform.isApplied()
returns false.
-
- Specified by:
apply
in class Transform
isApplied
public boolean isApplied()
- Description copied from class:
Transform
- Gets whether this transform appears to have been already applied (whether because apply was invoked or because another agent caused the same effect). The framework invokes this method inside a read lock on the document containing the transform location. The default
Transform
implementation returns false.
-
- Overrides:
isApplied
in class Transform
Copyright © 1997, 2004, Oracle. All rights reserved.