|
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 | |
org.eclipse.uml2.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. |
org.eclipse.uml2.Implementation |
ensureInterfaceImplementation(org.eclipse.uml2.Class realizingClass)
Ensure given realizing class has an implementation relationship to this interface. |
void |
ensureInterfaceOperations(org.eclipse.uml2.Class realizingClass)
|
org.eclipse.uml2.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 org.eclipse.uml2.Operation ensureAtLeastOneStaticOperation(String name)
name
- the given name if creation of an operation is necessary
public org.eclipse.uml2.Implementation ensureInterfaceImplementation(org.eclipse.uml2.Class realizingClass)
realizingClass
- the class that must realize this interface
public void ensureInterfaceOperations(org.eclipse.uml2.Class realizingClass)
public org.eclipse.uml2.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.