IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.transform.uml2
Class UMLTransform

java.lang.Object
  extended bycom.ibm.xtools.transform.core.AbstractTransformElement
      extended bycom.ibm.xtools.transform.core.AbstractTransform
          extended bycom.ibm.xtools.transform.core.Transform
              extended bycom.ibm.xtools.transform.uml2.UMLTransform
All Implemented Interfaces:
ITransformationItem
Direct Known Subclasses:
UMLKindTransform

public class UMLTransform
extends Transform

The UML Transform class is a utlity class for transformations that work with UML2 models. Transformations that that access an existing UML model must execute within a "read" action. Transformations that write or modify an existing UML model must execute within a "write" action and should also execute within an "undo" interval.

This transform performs all of its processing in a "write" action, which is contained within an "undo" interval. If the transformation is only reading the model, the write action will still work since a "write" implies a "read". If no changes to a model are performed, the undo interval will be empty and should be rejected (not added to the undo stack).


Constructor Summary
UMLTransform()
          The default constructor should only be used internally by the transformation service.
UMLTransform(ITransformationDescriptor info)
          Constructor for creating root transforms.
UMLTransform(String id)
          Constructor for creating transforms within the transformation hierarchy.
 
Method Summary
 void execute(ITransformContext context)
          Ensure that the transformation will execute in a write operation and in a single undo interval.
 
Methods inherited from class com.ibm.xtools.transform.core.Transform
add, add, canAccept, findTransform, getElements, getElements, handle, initializeProgress, registerTransform, remove, toString
 
Methods inherited from class com.ibm.xtools.transform.core.AbstractTransform
createContext, getTransformationDescriptor
 
Methods inherited from class com.ibm.xtools.transform.core.AbstractTransformElement
getAcceptCondition, getDescription, getId, getName, getProgressMonitor, setAcceptCondition, setDescription, setId, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UMLTransform

public UMLTransform()
The default constructor should only be used internally by the transformation service.


UMLTransform

public UMLTransform(ITransformationDescriptor info)
Constructor for creating root transforms.

Parameters:
info - A transformation descriptor.

UMLTransform

public UMLTransform(String id)
Constructor for creating transforms within the transformation hierarchy.

Parameters:
id - A unique transformation id.
Method Detail

execute

public void execute(ITransformContext context)
             throws Exception
Ensure that the transformation will execute in a write operation and in a single undo interval.

Overrides:
execute in class Transform
Parameters:
context - the current context of the transformation execution
Throws:
Exception
See Also:
AbstractTransform.execute(com.ibm.xtools.transform.core.ITransformContext)

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.