com.ibm.xtools.transform.uml2.cpp
Class CPPExtendInterfaceRule
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.CPPExtendInterfaceRule
- All Implemented Interfaces:
- ITransformationItem
- public abstract class CPPExtendInterfaceRule
- extends CPPExtendClassifierRule
This class provides common functionality for the extensibility of the transformation of
UML2 Interfaces into a C++ code. The source property of the rule context is expected
to be a UML2 Interface.
CPPExtendInterfaceRule
public CPPExtendInterfaceRule(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
getSourceInterface
protected final Interface getSourceInterface(ITransformContext context)
- Returns UML2 interface to be processed, if any. May return null.
- Parameters:
context
- The rule execution context
- Returns:
- The UML2 interface to be processed or null
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.