oracle.jdeveloper.audit.transform
Class CompositeTransform
java.lang.Object
oracle.jdeveloper.audit.transform.Transform
oracle.jdeveloper.audit.transform.CompositeTransform
- public abstract class CompositeTransform
- extends Transform
A transform composed from other transforms. Applying this transform applies each composing transform in sequence.
Constructor Summary |
CompositeTransform(java.lang.String name, Localizer localizer)
|
CompositeTransform(java.lang.String name, Transform[] transforms, Localizer localizer)
|
CompositeTransform(java.lang.String name, Transform t1, Localizer localizer)
|
CompositeTransform(java.lang.String name, Transform t1, Transform t2, Localizer localizer)
|
CompositeTransform(java.lang.String name, Transform t1, Transform t2, Transform t3, Localizer localizer)
|
Method Summary |
void |
addTransform(Transform transform)
|
void |
apply()
Applies this transform. |
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 |
setLocation(Location location)
Sets the location to which this transform is bound. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeTransform
public CompositeTransform(java.lang.String name,
Localizer localizer)
CompositeTransform
public CompositeTransform(java.lang.String name,
Transform t1,
Localizer localizer)
CompositeTransform
public CompositeTransform(java.lang.String name,
Transform t1,
Transform t2,
Localizer localizer)
CompositeTransform
public CompositeTransform(java.lang.String name,
Transform t1,
Transform t2,
Transform t3,
Localizer localizer)
CompositeTransform
public CompositeTransform(java.lang.String name,
Transform[] transforms,
Localizer localizer)
addTransform
public void addTransform(Transform transform)
setLocation
public void setLocation(Location location)
- Description copied from class:
Transform
- Sets the location to which this transform is bound. This method is used by the framework to bind and unbind (
setLocation(null)
) this transform.
-
- Overrides:
setLocation
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
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
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.