|
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.AbstractRule
com.ibm.xtools.transform.uml2.cpp.CPPExtendFramework
com.ibm.xtools.transform.uml2.cpp.CPPExtendRule
This class contains common functionality for the UML to C++ transformation extensibility providing basic text functions.
Constructor Summary | |
CPPExtendRule(String id)
Constructor. |
Method Summary | |
protected boolean |
addBodyPrefix(String prefix,
ITransformContext ruleContext)
Add text to the beginning of the body (.cpp) file. |
protected boolean |
addBodySuffix(String suffix,
ITransformContext ruleContext)
Add text to the end of the body (.cpp) file. |
protected boolean |
addHeaderPrefix(String prefix,
ITransformContext ruleContext)
Add text to the beginning of the header (.h) file. |
protected boolean |
addHeaderSuffix(String suffix,
ITransformContext ruleContext)
Add text to the end of the header (.h) file. |
protected boolean |
isNested(ITransformContext context)
Evaluates source property of the context to determine if it is a nested classifier. |
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 |
public CPPExtendRule(String id)
id
- A unique identifier for the rule.Method Detail |
protected final boolean addHeaderPrefix(String prefix, ITransformContext ruleContext)
prefix
- Text to add to the beginning of the header file generated for this classifier.ruleContext
- This rule execution context. Must not be null.protected final boolean addHeaderSuffix(String suffix, ITransformContext ruleContext)
suffix
- Text to add to the end of the header file generated for this classifier.ruleContext
- This rule execution context. Must not be null.protected final boolean addBodyPrefix(String prefix, ITransformContext ruleContext)
prefix
- Text to add to the beginning of the body file generated for this classifier.ruleContext
- This rule execution context. Must not be null.protected final boolean addBodySuffix(String suffix, ITransformContext ruleContext)
suffix
- Text to add to the end of the body file generated for this classifier.ruleContext
- This rule execution context. Must not be null.protected final boolean isNested(ITransformContext context)
context
- rule execution context
|
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.