|
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.patterns.framework.uml2.adapters.AbstractElement
com.ibm.xtools.patterns.framework.uml2.adapters.Classifier
com.ibm.xtools.patterns.framework.uml2.adapters.Interface
This UML2 adapter class for UML2 interface. Contains many helper methods that together form a new interface for pattern instances to use (instead of the normal UML2 interface methods that are exposed). Some of the same type of helper methods that are found in a model facade would be found here but distributed amongst the responsible metaclasses. For example, Interface will wrap a UML2 interface.
Method Summary | |
Operation |
ensureAtLeastOneStaticOperation(String name)
Ensure at least one static operation on this interface, if an operation doesn't exist create one with the given name. |
Implementation |
ensureInterfaceImplementation(Class realizingClass)
Ensure given realizing class has an implementation relationship to this interface. |
void |
ensureInterfaceOperations(Class realizingClass)
Ensure operations are realized from interface on to the realizing class. |
Operation |
ensureStaticOperation(String name)
Ensure a static operation with the given name on this interface. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public Operation ensureAtLeastOneStaticOperation(String name)
name
- the given name if creation of an operation is necessary
public Implementation ensureInterfaceImplementation(Class realizingClass)
realizingClass
- the class that must realize this interface
public void ensureInterfaceOperations(Class realizingClass)
realizingClass
- class that realize the interface's operationspublic Operation ensureStaticOperation(String name)
name
- the name of the operation
|
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.