|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.xtools.transform.core.AbstractTransformElement
com.ibm.xtools.transform.core.AbstractTransform
com.ibm.xtools.transform.core.Transform
com.ibm.xtools.transform.uml2.UMLTransform
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 |
public UMLTransform()
public UMLTransform(ITransformationDescriptor info)
info
- A transformation descriptor.public UMLTransform(String id)
id
- A unique transformation id.Method Detail |
public void execute(ITransformContext context) throws Exception
execute
in class Transform
context
- the current context of the transformation execution
Exception
AbstractTransform.execute(com.ibm.xtools.transform.core.ITransformContext)
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.