public class CompositeTransform extends Transform
| Constructor and Description |
|---|
CompositeTransform() |
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(Transform component) |
protected void |
copyInternalState(ExtensionBean bean,
java.util.Map<java.lang.String,ExtensionBean> context)
Copies internal subclass state as part of creating a copy of this bean.
|
TransformContext[] |
createContexts(Violation violation)
Creates the
TransformContexts required to evaluate or apply this
transform for a violation; returns null or an empty array if the contexts
cannot be created. |
java.util.Collection<Transform> |
getComponents() |
adapter, boundLabel, condition, definition, isEnabled, sequenceBegin, sequenceEnd, setEnabled, unboundLabeladdPropertyChangeListener, addPropertyChangeListener, createCopy, description, equals, extensionId, extensionLine, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, formattedString, formattedString, formattedString, hashCode, id, label, logError, logError, logWarning, name, propertyDescription, propertyLabel, removePropertyChangeListener, removePropertyChangeListener, setters, stringpublic void addComponent(Transform component)
protected void copyInternalState(ExtensionBean bean, java.util.Map<java.lang.String,ExtensionBean> context) throws java.lang.reflect.InvocationTargetException
ExtensionBeancopyInternalState in class Transformbean - The partially initialized copy.context - A map which allows subclasses to preserve object identity
when copying a graph of extension beans.java.lang.reflect.InvocationTargetExceptionExtensionBean.createCopy(java.util.Map<java.lang.String, oracle.jdeveloper.audit.extension.ExtensionBean>)public java.util.Collection<Transform> getComponents()
public TransformContext[] createContexts(Violation violation)
TransformTransformContexts required to evaluate or apply this
transform for a violation; returns null or an empty array if the contexts
cannot be created.
The default Transform implementation invokes the
TransformAdapter.newWriteContext(Transform, Violation) method of its
transform adapter to create a context for this transform at the violation
location, i.e.:
A transform can override this method to use one or more mutation models
at one or more locations. The Audit framework will attempt to match and
invoke transform methods, such as
return new TransformContext[]{adapter.newWriteContext(this, violation)};
isApplicable, query, and
apply methods in sequence for each context returned.
TransformContext. Of particular note,
for transforms that create or move a file, the location of interest does
not yet exist; the "pending location" is therefore specified as a URL rather than as a Location.
To allow a transform to chain from a context that creates or moves a file
to a new URL and a context that edits the file at the new URL, creating
an edit context with a pending location is allowed; the URL should match
the pending location of a preceding create or move context.createContexts in class Transformviolation - The violation addressed by the transform.TransformContexts required to evaluate or
apply the transform for the violation.