IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.patterns.framework.uml2.adapters
Class Operation

java.lang.Object
  extended bycom.ibm.xtools.patterns.framework.uml2.adapters.AbstractElement
      extended bycom.ibm.xtools.patterns.framework.uml2.adapters.Operation

public class Operation
extends com.ibm.xtools.patterns.framework.uml2.adapters.AbstractElement

This UML2 adapter class for UML2 operation. Contains many helper methods that together form a new interface for pattern instances to use (instead of the normal UML2 operation 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, Operation will wrap UML2 operation.


Method Summary
 org.eclipse.uml2.Parameter ensureParameter(String name, org.eclipse.uml2.Type type, org.eclipse.uml2.ParameterDirectionKind directionKind)
          Ensure a parameters exists on tihs operation.
 org.eclipse.uml2.Parameter ensureParameter(org.eclipse.uml2.Type type, org.eclipse.uml2.ParameterDirectionKind directionKind)
          Ensure a parameter exists on this operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

ensureParameter

public org.eclipse.uml2.Parameter ensureParameter(org.eclipse.uml2.Type type,
                                                  org.eclipse.uml2.ParameterDirectionKind directionKind)
Ensure a parameter exists on this operation.

Parameters:
type - the type of the parameter, a UML2 model element is used as the type
directionKind - the direction of the parameter, an in parameter, out parameter, etc
Returns:
the ensured parameter is returned

ensureParameter

public org.eclipse.uml2.Parameter ensureParameter(String name,
                                                  org.eclipse.uml2.Type type,
                                                  org.eclipse.uml2.ParameterDirectionKind directionKind)
Ensure a parameters exists on tihs operation.

Parameters:
name - the name of the parameter
type - the type of the parameter, a UML2 model element is used as the type
directionKind - the direction of the parameter, an in parameter, out parameter, etc
Returns:
the ensured parameter is returned

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.