com.ibm.xtools.transform.uml2.cpp
Class CPPExtendClassRule
java.lang.Object
com.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
com.ibm.xtools.transform.uml2.cpp.CPPExtendClassifierRule
com.ibm.xtools.transform.uml2.cpp.CPPExtendClassRule
- All Implemented Interfaces:
- ITransformationItem
- public abstract class CPPExtendClassRule
- extends CPPExtendClassifierRule
This class provides common functionality for the extensibility of the transformation of
UML2 Classes into a C++ code. The source property of the rule context is expected
to be a UML2 Class.
Method Summary |
boolean |
canAccept(ITransformContext context)
The implementation of this method filters out contexts with inappropriate source
elements, then calls canAcceptExt to provide additional filtering capabilities. |
protected Class |
getSourceClass(ITransformContext context)
Returns the UML2 class to be processed. |
CPPExtendClassRule
public CPPExtendClassRule(String id)
- Constructor.
- Parameters:
id
- A unique identifier for the rule.
canAccept
public final boolean canAccept(ITransformContext context)
- Description copied from class:
CPPExtendFramework
- The implementation of this method filters out contexts with inappropriate source
elements, then calls canAcceptExt to provide additional filtering capabilities.
- Overrides:
canAccept
in class CPPExtendClassifierRule
getSourceClass
protected final Class getSourceClass(ITransformContext context)
- Returns the UML2 class to be processed. Returns null if the source property is not a UML2 class.
- Parameters:
context
- The rule execution context.
- Returns:
- The UML2 class to be processed or null.
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.