Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.jdeveloper.audit.transform
Class TransformAdapter

java.lang.Object
  extended by oracle.jdeveloper.audit.transform.TransformAdapter

Direct Known Subclasses:
NullTransformAdapter, ProjectTransformAdapter, TextTransformAdapter

public abstract class TransformAdapter
extends java.lang.Object

An adapter between the Audit framework and transforms of a specific type. It allows the framework to create a transform context and to invoke type-specific setup and teardown code (e.g., for a model which requires that a transaction be created).


Nested Class Summary
 class TransformAdapter.ConstructRegion
           
 class TransformAdapter.LocationRegion
           
 class TransformAdapter.Region
           

 

Constructor Summary
TransformAdapter()
           

 

Method Summary
 void addHighlight(ModelAdapter model, java.lang.Object construct)
          Adds a highlight region for a construct for this context.
 void addRemovedHighlight(ModelAdapter model, java.lang.Object construct)
          Adds a highlight region for an about-to-be-removed construct in the model for this context.
abstract  void beginTransform(TransformContext context)
          Begins a transform of this type.
 void beginTransform(TransformContext context, TransformSequenceContext sequenceContext)
          Begins a transform of this type within a sequence of transforms of this type.
 void beginTransformSequence(TransformSequenceContext sequenceContext)
          Begins a transform sequence.
abstract  void cancelTransform(TransformContext context)
          Cancels a transform of this type.
 void cancelTransformSequence(TransformSequenceContext sequenceContext)
          Cancels a transform sequence of this type.
abstract  TransformContext createContext(Transform transform, Violation violation, Location location)
          Creates a context for a transform over a violation.
abstract  void endTransform(TransformContext context)
          Ends a transform of this type.
 void endTransformSequence(TransformSequenceContext sequenceContext)
          Ends a transform sequence.
abstract  java.lang.Class getContextClass()
          Gets the class of the context created by createContext(oracle.jdeveloper.audit.transform.Transform, oracle.jdeveloper.audit.service.Violation, oracle.jdeveloper.audit.model.Location).
 java.util.List getDeferredCommands()
          Gets the commands deferred by the apply method of a transform, or an empty list if none.
 java.util.Collection<Location> getHighlightRegions(TransformContext context)
          Gets the highlight regions set by the apply method of a transform for its model, or an empty list if none.
 Location getSelection()
          Gets the selection set by the apply method of a transform, or null if none.
 void invokeLater(Command command)
          Invokes a command after the command currently being executed by the Audit framework completes.
 boolean isTransformable(TransformContext context)
          Gets whether a transform location is transformable.
 java.lang.Boolean makeTransformable(TransformContext context)
          Makes a transform location transformable if not already so.
protected  java.lang.Boolean makeWritable(Node node, Project project, Workspace workspace)
           
 void setPredecessorApplyData(TransformContext context, java.lang.Object applyData)
          Sets the predecessor apply data for a transform.
 void setSelection(Location location, int margin, int endMargin)
          Sets the selection to be set after a transform is applied.
 void setSelection(ModelAdapter model, java.lang.Object construct, int margin, int endMargin)
          Sets the selection to be set after a transform is applied.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

TransformAdapter

public TransformAdapter()

Method Detail

getContextClass

public abstract java.lang.Class getContextClass()
Gets the class of the context created by createContext(oracle.jdeveloper.audit.transform.Transform, oracle.jdeveloper.audit.service.Violation, oracle.jdeveloper.audit.model.Location).

createContext

public abstract TransformContext createContext(Transform transform,
                                               Violation violation,
                                               Location location)
Creates a context for a transform over a violation.

isTransformable

public boolean isTransformable(TransformContext context)
Gets whether a transform location is transformable. The framework ensures the following before invoking this method: