IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.transform.uml2.cpp
Class CPPExtendOperationRule

java.lang.Object
  extended bycom.ibm.xtools.transform.core.AbstractTransformElement
      extended bycom.ibm.xtools.transform.core.AbstractRule
          extended bycom.ibm.xtools.transform.uml2.cpp.CPPExtendFramework
              extended bycom.ibm.xtools.transform.uml2.cpp.CPPExtendOperationRule
All Implemented Interfaces:
ITransformationItem

public abstract class CPPExtendOperationRule
extends CPPExtendFramework

This class provides common functionality for the extensibility of the transformation of UML2 Operations into a C++ code. The source property of the rule context is expected to be a UML2 Operation.


Constructor Summary
CPPExtendOperationRule(String id)
          Constructor.
 
Method Summary
protected  boolean addBody(String body, ITransformContext ruleContext)
          Sets the operation's body.
protected  org.eclipse.uml2.Operation getSourceOperation(ITransformContext context)
          Returns UML2 enumeration to be processed, if any.
 
Methods inherited from class com.ibm.xtools.transform.uml2.cpp.CPPExtendFramework
canAccept, canAcceptExt, createTarget, createTargetExt
 
Methods inherited from class com.ibm.xtools.transform.core.AbstractRule
execute, findTarget, isSourceConsumed, mapTarget, toString, updateTarget
 
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

CPPExtendOperationRule

public CPPExtendOperationRule(String id)
Constructor.

Parameters:
id - A unique identifier for the rule.
Method Detail

addBody

protected final boolean addBody(String body,
                                ITransformContext ruleContext)
Sets the operation's body.

Parameters:
body - The operation's body.
ruleContext - This rule execution context. Must not be null.

getSourceOperation

protected final org.eclipse.uml2.Operation getSourceOperation(ITransformContext context)
Returns UML2 enumeration to be processed, if any. May return null.

Parameters:
context - This rule execution context.
Returns:
The UML2 operation to be processed or null.

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

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