org.eclipse.uml2.uml
Interface OperationOwner

All Known Subinterfaces:
Activity, Artifact, AssociationClass, Behavior, Class, Component, DataType, DeploymentSpecification, Device, Enumeration, ExecutionEnvironment, FunctionBehavior, Interaction, Interface, Node, OpaqueBehavior, PrimitiveType, ProtocolStateMachine, StateMachine, Stereotype

public interface OperationOwner

Common protocol for classifiers that own operations.

Since:
5.0

Method Summary
 Operation createOwnedOperation(java.lang.String name, org.eclipse.emf.common.util.EList<java.lang.String> parameterNames, org.eclipse.emf.common.util.EList<Type> parameterTypes)
          Creates a new void Operation (having no return result) as an owned operation of this classifier.
 Operation createOwnedOperation(java.lang.String name, org.eclipse.emf.common.util.EList<java.lang.String> parameterNames, org.eclipse.emf.common.util.EList<Type> parameterTypes, Type returnType)
          Creates a new Operation as an owned operation of this classifier.
 Operation getOwnedOperation(java.lang.String name, org.eclipse.emf.common.util.EList<java.lang.String> parameterNames, org.eclipse.emf.common.util.EList<Type> parameterTypes)
          Finds the first owned operation that matches all or any of the given name, parameterNames, and parameterTypes.
 Operation getOwnedOperation(java.lang.String name, org.eclipse.emf.common.util.EList<java.lang.String> parameterNames, org.eclipse.emf.common.util.EList<Type> parameterTypes, boolean ignoreCase, boolean createOnDemand)
          Finds the first owned operation that matches all or any of the given name (optionally case-insensitive), parameterNames (optionally case-insensitive), and parameterTypes.
 org.eclipse.emf.common.util.EList<Operation> getOwnedOperations()
          Obtains the operations owned by this classifier.
 

Method Detail

getOwnedOperations

org.eclipse.emf.common.util.EList<Operation> getOwnedOperations()
Obtains the operations owned by this classifier.

Returns:
my owned operations

createOwnedOperation

Operation createOwnedOperation(java.lang.String name,
                               org.eclipse.emf.common.util.EList<java.lang.String> parameterNames,
                               org.eclipse.emf.common.util.EList<Type> parameterTypes)
Creates a new void Operation (having no return result) as an owned operation of this classifier.

Parameters:
name - the name of the new operation (may be null)
parameterNames - the names of the operation's IN parameters (may be null if no parameters are needed)
parameterTypes - the types of the operation's IN parameters (may be null if no parameters are needed)
Returns:
the new owned operation
See Also:
createOwnedOperation(String, EList, EList, Type), getOwnedOperation(String, EList, EList)

createOwnedOperation

Operation createOwnedOperation(java.lang.String name,
                               org.eclipse.emf.common.util.EList<java.lang.String> parameterNames,
                               org.eclipse.emf.common.util.EList<Type> parameterTypes,
                               Type returnType)
Creates a new Operation as an owned operation of this classifier.

Parameters:
name - the name of the new operation (may be null)
parameterNames - the names of the operation's IN parameters (may be null if no parameters are needed)
parameterTypes - the types of the operation's IN parameters (may be null if no parameters are needed)
returnType - the type of the operation (which is the type of its sole return result)
Returns:
the new owned operation
See Also:
createOwnedOperation(String, EList, EList), getOwnedOperation(String, EList, EList)

getOwnedOperation

Operation getOwnedOperation(java.lang.String name,
                            org.eclipse.emf.common.util.EList<java.lang.String> parameterNames,
                            org.eclipse.emf.common.util.EList<Type> parameterTypes)
Finds the first owned operation that matches all or any of the given name, parameterNames, and parameterTypes.

Parameters:
name - the operation name to match, or to match any operation name
parameterNames - the parameter names to match, or to match any parameter names
parameterTypes - the parameter types to match, or to match any signature
Returns:
any matching operation, or null if not found
See Also:
getOwnedOperation(String, EList, EList, boolean, boolean)

getOwnedOperation

Operation getOwnedOperation(java.lang.String name,
                            org.eclipse.emf.common.util.EList<java.lang.String> parameterNames,
                            org.eclipse.emf.common.util.EList<Type> parameterTypes,
                            boolean ignoreCase,
                            boolean createOnDemand)
Finds the first owned operation that matches all or any of the given name (optionally case-insensitive), parameterNames (optionally case-insensitive), and parameterTypes.

Parameters:
name - the operation name to match, or to match any operation name
parameterNames - the parameter names to match, or to match any parameter names
parameterTypes - the parameter types to match, or to match any signature
ignoreCase - whether matching of operation and parameter names is case-insensitive
createOnDemand - whether to create the owned operation and return it if an existing match is not found
Returns:
any matching operation, or null if not found and createOnDemand is false
See Also:
getOwnedOperation(String, EList, EList)

Copyright 2003, 2014 IBM Corporation, CEA, and others.
All Rights Reserved.