public class NullTransformAdapter extends TransformAdapter
TransformAdapter.ConstructRegion, TransformAdapter.LocationRegion, TransformAdapter.Region
Constructor and Description |
---|
NullTransformAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
beginTransform(TransformContext context)
Begins a transform of this type.
|
void |
beginTransformSequence(TransformSequenceContext sequenceContext)
Begins a transform sequence.
|
void |
cancelTransform(TransformContext context)
Cancels a transform of this type.
|
void |
cancelTransformSequence(TransformSequenceContext sequenceContext)
Cancels a transform sequence of this type.
|
TransformContext |
createContext(Transform transform,
Violation violation,
Location location)
Creates a context for a transform over a violation.
|
void |
endTransform(TransformContext context)
Ends a transform of this type.
|
void |
endTransformSequence(TransformSequenceContext sequenceContext)
Ends a transform sequence.
|
java.lang.Class<? extends TransformContext> |
getContextClass()
Gets the class of the context created by
TransformAdapter.createContext(oracle.jdeveloper.audit.transform.Transform, oracle.jdeveloper.audit.service.Violation, oracle.jdeveloper.audit.model.Location) . |
boolean |
isTransformable(Location location)
Gets whether a location is transformable by this transform adapter.
|
addHighlight, addRemovedHighlight, beginTransform, equals, getDeferredCommands, getHighlightRegions, getSelection, hashCode, invokeLater, isTransformable, makeTransformable, makeWritable, setPredecessorApplyData, setSelection, setSelection
public java.lang.Class<? extends TransformContext> getContextClass()
TransformAdapter
TransformAdapter.createContext(oracle.jdeveloper.audit.transform.Transform, oracle.jdeveloper.audit.service.Violation, oracle.jdeveloper.audit.model.Location)
.getContextClass
in class TransformAdapter
public TransformContext createContext(Transform transform, Violation violation, Location location)
TransformAdapter
createContext
in class TransformAdapter
public void beginTransformSequence(TransformSequenceContext sequenceContext)
TransformAdapter
subclass and are
applied in sequence to the same model. The sequence context allows the
transform adapters to share state through the sequence, typically to allow
optimization (e.g., to coalesce multiple transactions into a single
transaction). The framework ensures the following before invoking this
method:
CommandProcessor.beginTrans(java.lang.String)
has been
invoked to start a command processor batch operation;
The default TransformAdapter
implementation does nothing.
The NullTransformAdapter
implementation does nothing.
beginTransformSequence
in class TransformAdapter
sequenceContext
- The sequence context for the current sequence.public void beginTransform(TransformContext context)
CommandProcessor.beginTrans(java.lang.String)
has been
invoked to start a command processor batch operation;
TransformAdapter.beginTransformSequence(oracle.jdeveloper.audit.transform.TransformSequenceContext)
method has been invoked;
The NullTransformAdapter
implementation does nothing.
beginTransform
in class TransformAdapter
context
- A transform context created by this adapter.public void endTransform(TransformContext context)
TransformAdapter.beginTransform(oracle.jdeveloper.audit.transform.TransformContext)
has been invoked (its preconditions still
hold);
The NullTransformAdapter
implementation does nothing.
endTransform
in class TransformAdapter
context
- A transform context created by this adapter.public void cancelTransform(TransformContext context)
TransformAdapter.beginTransform(oracle.jdeveloper.audit.transform.TransformContext)
has been invoked (its preconditions still
hold);
TransformAdapter.endTransform(oracle.jdeveloper.audit.transform.TransformContext)
method has thrown an
exception.
The NullTransformAdapter
implementation does nothing.
cancelTransform
in class TransformAdapter
context
- A transform context created by this type.public void cancelTransformSequence(TransformSequenceContext sequenceContext)
TransformAdapter.beginTransformSequence(oracle.jdeveloper.audit.transform.TransformSequenceContext)
has been invoked (its preconditions still
hold);
TransformAdapter.endTransformSequence(oracle.jdeveloper.audit.transform.TransformSequenceContext)
method has thrown an
exception.
The default TransformAdapter
implementation does nothing.
The NullTransformAdapter
implementation does nothing.
cancelTransformSequence
in class TransformAdapter
sequenceContext
- The sequence context for the current sequence.public void endTransformSequence(TransformSequenceContext sequenceContext)
TransformAdapter.beginTransformSequence(oracle.jdeveloper.audit.transform.TransformSequenceContext)
has been invoked and its preconditions still
hold.
The default TransformAdapter
implementation does nothing.
The NullTransformAdapter
implementation does nothing.
endTransformSequence
in class TransformAdapter
sequenceContext
- The sequence context for the current sequence.public boolean isTransformable(Location location)
TransformAdapter
TransformAdapter.isTransformable(ModelAdapter)
returned true for that model.
The default TransformAdapter
implementation returns true unless
the location is guarded.
isTransformable
in class TransformAdapter
location
- The location to be transformed.