org.eclipse.uml2.uml
Interface Behavior

All Superinterfaces:
AttributeOwner, BehavioredClassifier, Class, Classifier, Element, org.eclipse.emf.ecore.EModelElement, EncapsulatedClassifier, org.eclipse.emf.ecore.EObject, NamedElement, Namespace, org.eclipse.emf.common.notify.Notifier, OperationOwner, PackageableElement, ParameterableElement, RedefinableElement, StructuredClassifier, TemplateableElement, Type
All Known Subinterfaces:
Activity, FunctionBehavior, Interaction, OpaqueBehavior, ProtocolStateMachine, StateMachine

public interface Behavior
extends Class

A representation of the model object 'Behavior'. Behavior is a specification of how its context BehavioredClassifier changes state over time. This specification may be either a definition of possible behavior execution or emergent behavior, or a selective illustration of an interesting subset of possible executions. The latter form is typically used for capturing examples, such as a trace of a particular execution.

From package UML::CommonBehavior.

The following features are supported:

See Also:
UMLPackage.getBehavior()

Field Summary
 
Fields inherited from interface org.eclipse.uml2.uml.NamedElement
SEPARATOR
 
Method Summary
 BehavioredClassifier behavioredClassifier(Element from)
          The first BehavioredClassifier reached by following the chain of owner relationships from the Behavior, if any.
 Parameter createOwnedParameter(java.lang.String name, Type type)
          Creates a new Parameter, with the specified 'Name', and 'Type', and appends it to the 'Owned Parameter' containment reference list
 ParameterSet createOwnedParameterSet(java.lang.String name)
          Creates a new ParameterSet, with the specified 'Name', and appends it to the 'Owned Parameter Set' containment reference list
 Constraint createPostcondition(java.lang.String name)
          Creates a new Constraint, with the specified 'Name', and appends it to the 'Postcondition' reference list
 Constraint createPostcondition(java.lang.String name, org.eclipse.emf.ecore.EClass eClass)
          Creates a new Constraint, with the specified 'Name', and appends it to the 'Postcondition' reference list
 Constraint createPrecondition(java.lang.String name)
          Creates a new Constraint, with the specified 'Name', and appends it to the 'Precondition' reference list
 Constraint createPrecondition(java.lang.String name, org.eclipse.emf.ecore.EClass eClass)
          Creates a new Constraint, with the specified 'Name', and appends it to the 'Precondition' reference list
 BehavioredClassifier getContext()
          Returns the value of the 'Context' reference.
 Parameter getOwnedParameter(java.lang.String name, Type type)
          Retrieves the first Parameter with the specified 'Name', and 'Type' from the 'Owned Parameter' containment reference list
 Parameter getOwnedParameter(java.lang.String name, Type type, boolean ignoreCase, boolean createOnDemand)
          Retrieves the first Parameter with the specified 'Name', and 'Type' from the 'Owned Parameter' containment reference list
 org.eclipse.emf.common.util.EList<Parameter> getOwnedParameters()
          Returns the value of the 'Owned Parameter' containment reference list.
 ParameterSet getOwnedParameterSet(java.lang.String name)
          Retrieves the first ParameterSet with the specified 'Name' from the 'Owned Parameter Set' containment reference list
 ParameterSet getOwnedParameterSet(java.lang.String name, boolean ignoreCase, boolean createOnDemand)
          Retrieves the first ParameterSet with the specified 'Name' from the 'Owned Parameter Set' containment reference list
 org.eclipse.emf.common.util.EList<ParameterSet> getOwnedParameterSets()
          Returns the value of the 'Owned Parameter Set' containment reference list.
 Constraint getPostcondition(java.lang.String name)
          Retrieves the first Constraint with the specified 'Name' from the 'Postcondition' reference list
 Constraint getPostcondition(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
          Retrieves the first Constraint with the specified 'Name' from the 'Postcondition' reference list
 org.eclipse.emf.common.util.EList<Constraint> getPostconditions()
          Returns the value of the 'Postcondition' reference list.
 Constraint getPrecondition(java.lang.String name)
          Retrieves the first Constraint with the specified 'Name' from the 'Precondition' reference list
 Constraint getPrecondition(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
          Retrieves the first Constraint with the specified 'Name' from the 'Precondition' reference list
 org.eclipse.emf.common.util.EList<Constraint> getPreconditions()
          Returns the value of the 'Precondition' reference list.
 Behavior getRedefinedBehavior(java.lang.String name)
          Retrieves the first Behavior with the specified 'Name' from the 'Redefined Behavior' reference list
 Behavior getRedefinedBehavior(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
          Retrieves the first Behavior with the specified 'Name' from the 'Redefined Behavior' reference list
 org.eclipse.emf.common.util.EList<Behavior> getRedefinedBehaviors()
          Returns the value of the 'Redefined Behavior' reference list.
 BehavioralFeature getSpecification()
          Returns the value of the 'Specification' reference.
 org.eclipse.emf.common.util.EList<Parameter> inputParameters()
          The in and inout ownedParameters of the Behavior.
 boolean isReentrant()
          Returns the value of the 'Is Reentrant' attribute.
 boolean isSetIsReentrant()
          Returns whether the value of the 'Is Reentrant' attribute is set
 org.eclipse.emf.common.util.EList<Parameter> outputParameters()
          The out, inout and return ownedParameters.
 void setIsReentrant(boolean value)
          Sets the value of the 'Is Reentrant' attribute
 void setSpecification(BehavioralFeature value)
          Sets the value of the 'Specification' reference
 void unsetIsReentrant()
          Unsets the value of the 'Is Reentrant' attribute
 boolean validateFeatureOfContextClassifier(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          The specification BehavioralFeature must be a feature (possibly inherited) of the context BehavioredClassifier of the Behavior.
 boolean validateMostOneBehavior(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          There may be at most one Behavior for a given pairing of BehavioredClassifier (as owner of the Behavior) and BehavioralFeature (as specification of the Behavior).
 boolean validateParametersMatch(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          If a Behavior has a specification BehavioralFeature, then it must have the same number of ownedParameters as its specification.
 
Methods inherited from interface org.eclipse.uml2.uml.Class
createNestedClassifier, createOwnedOperation, createOwnedOperation, createOwnedReception, getExtension, getExtension, getExtensions, getNestedClassifier, getNestedClassifier, getNestedClassifiers, getOwnedOperation, getOwnedOperation, getOwnedOperations, getOwnedReception, getOwnedReception, getOwnedReceptions, getSuperClass, getSuperClass, getSuperClasses, isActive, isMetaclass, setIsActive, validatePassiveClass
 
Methods inherited from interface org.eclipse.uml2.uml.EncapsulatedClassifier
createOwnedPort, getOwnedPort, getOwnedPort, getOwnedPort, getOwnedPorts
 
Methods inherited from interface org.eclipse.uml2.uml.StructuredClassifier
allRoles, createOwnedAttribute, createOwnedAttribute, createOwnedAttribute, createOwnedConnector, getOwnedAttribute, getOwnedAttribute, getOwnedAttributes, getOwnedConnector, getOwnedConnector, getOwnedConnectors, getPart, getPart, getParts, getRole, getRole, getRoles
 
Methods inherited from interface org.eclipse.uml2.uml.Classifier
allAttributes, allFeatures, allParents, allRealizedInterfaces, allSlottableFeatures, allUsedInterfaces, createCollaborationUse, createGeneralization, createOwnedUseCase, createRepresentation, createSubstitution, directlyRealizedInterfaces, directlyUsedInterfaces, getAllAttributes, getAllOperations, getAllUsedInterfaces, getAttribute, getAttribute, getAttributes, getCollaborationUse, getCollaborationUse, getCollaborationUses, getFeature, getFeature, getFeatures, getGeneral, getGeneral, getGeneralization, getGeneralization, getGeneralizations, getGenerals, getInheritedMember, getInheritedMember, getInheritedMembers, getOperation, getOperation, getOperations, getOwnedUseCase, getOwnedUseCase, getOwnedUseCases, getPowertypeExtent, getPowertypeExtent, getPowertypeExtents, getRedefinedClassifier, getRedefinedClassifier, getRedefinedClassifiers, getRepresentation, getSubstitution, getSubstitution, getSubstitutions, getUseCase, getUseCase, getUseCases, getUsedInterfaces, hasVisibilityOf, inherit, inheritableMembers, isAbstract, isFinalSpecialization, isSubstitutableFor, maySpecializeType, parents, setIsAbstract, setIsFinalSpecialization, setRepresentation, validateMapsToGeneralizationSet, validateNoCyclesInGeneralization, validateNonFinalParents, validateSpecializeType
 
Methods inherited from interface org.eclipse.uml2.uml.Namespace
createElementImport, createElementImport, createOwnedRule, createOwnedRule, createPackageImport, createPackageImport, excludeCollisions, getElementImport, getElementImport, getElementImports, getImportedElements, getImportedMember, getImportedMember, getImportedMembers, getImportedPackages, getMember, getMember, getMembers, getNamesOfMember, getOwnedMember, getOwnedMember, getOwnedMembers, getOwnedRule, getOwnedRule, getOwnedRules, getPackageImport, getPackageImport, getPackageImports, importMembers, membersAreDistinguishable, validateCannotImportOwnedMembers, validateCannotImportSelf, validateMembersDistinguishable
 
Methods inherited from interface org.eclipse.uml2.uml.RedefinableElement
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateNonLeafRedefinition, validateRedefinitionConsistent, validateRedefinitionContextValid
 
Methods inherited from interface org.eclipse.uml2.uml.Type
conformsTo, createAssociation, getAssociations, getPackage, setPackage
 
Methods inherited from interface org.eclipse.uml2.uml.PackageableElement
validateNamespaceNeedsVisibility
 
Methods inherited from interface org.eclipse.uml2.uml.NamedElement
allNamespaces, allOwningPackages, createDependency, createNameExpression, createUsage, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
 
Methods inherited from interface org.eclipse.uml2.uml.ParameterableElement
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
 
Methods inherited from interface org.eclipse.uml2.uml.Element
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.uml2.uml.TemplateableElement
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature
 
Methods inherited from interface org.eclipse.uml2.uml.BehavioredClassifier
createClassifierBehavior, createInterfaceRealization, createOwnedBehavior, getAllImplementedInterfaces, getClassifierBehavior, getImplementedInterfaces, getInterfaceRealization, getInterfaceRealization, getInterfaceRealizations, getOwnedBehavior, getOwnedBehavior, getOwnedBehaviors, setClassifierBehavior, validateClassBehavior
 

Method Detail

isReentrant

boolean isReentrant()
Returns the value of the 'Is Reentrant' attribute. The default value is "true". Tells whether the Behavior can be invoked while it is still executing from a previous invocation.

From package UML::CommonBehavior.

Returns:
the value of the 'Is Reentrant' attribute.
See Also:
isSetIsReentrant(), unsetIsReentrant(), setIsReentrant(boolean), UMLPackage.getBehavior_IsReentrant()

setIsReentrant

void setIsReentrant(boolean value)
Sets the value of the 'Is Reentrant' attribute.

Parameters:
value - the new value of the 'Is Reentrant' attribute.
See Also:
isSetIsReentrant(), unsetIsReentrant(), isReentrant()

unsetIsReentrant

void unsetIsReentrant()
Unsets the value of the 'Is Reentrant' attribute.

See Also:
isSetIsReentrant(), isReentrant(), setIsReentrant(boolean)

isSetIsReentrant

boolean isSetIsReentrant()
Returns whether the value of the 'Is Reentrant' attribute is set.

Returns:
whether the value of the 'Is Reentrant' attribute is set.
See Also:
unsetIsReentrant(), isReentrant(), setIsReentrant(boolean)

getRedefinedBehaviors

org.eclipse.emf.common.util.EList<Behavior> getRedefinedBehaviors()
Returns the value of the 'Redefined Behavior' reference list. The list contents are of type Behavior.

This feature subsets the following features:

References the Behavior that this Behavior redefines. A subtype of Behavior may redefine any other subtype of Behavior. If the Behavior implements a BehavioralFeature, it replaces the redefined Behavior. If the Behavior is a classifierBehavior, it extends the redefined Behavior.

From package UML::CommonBehavior.

Returns:
the value of the 'Redefined Behavior' reference list.
See Also:
UMLPackage.getBehavior_RedefinedBehavior()

getRedefinedBehavior

Behavior getRedefinedBehavior(java.lang.String name)
Retrieves the first Behavior with the specified 'Name' from the 'Redefined Behavior' reference list.

Parameters:
name - The 'Name' of the Behavior to retrieve, or null.
Returns:
The first Behavior with the specified 'Name', or null.
See Also:
getRedefinedBehaviors()

getRedefinedBehavior

Behavior getRedefinedBehavior(java.lang.String name,
                              boolean ignoreCase,
                              org.eclipse.emf.ecore.EClass eClass)
Retrieves the first Behavior with the specified 'Name' from the 'Redefined Behavior' reference list.

Parameters:
name - The 'Name' of the Behavior to retrieve, or null.
ignoreCase - Whether to ignore case in String comparisons.
eClass - The Ecore class of the Behavior to retrieve, or null.
Returns:
The first Behavior with the specified 'Name', or null.
See Also:
getRedefinedBehaviors()

validateMostOneBehavior

boolean validateMostOneBehavior(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                java.util.Map<java.lang.Object,java.lang.Object> context)
There may be at most one Behavior for a given pairing of BehavioredClassifier (as owner of the Behavior) and BehavioralFeature (as specification of the Behavior). specification <> null implies _'context'.ownedBehavior->select(specification=self.specification)->size() = 1

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

getOwnedParameters

org.eclipse.emf.common.util.EList<Parameter> getOwnedParameters()
Returns the value of the 'Owned Parameter' containment reference list. The list contents are of type Parameter.

This feature subsets the following features:

References a list of Parameters to the Behavior which describes the order and type of arguments that can be given when the Behavior is invoked and of the values which will be returned when the Behavior completes its execution.

From package UML::CommonBehavior.

Returns:
the value of the 'Owned Parameter' containment reference list.
See Also:
UMLPackage.getBehavior_OwnedParameter()

createOwnedParameter

Parameter createOwnedParameter(java.lang.String name,
                               Type type)
Creates a new Parameter, with the specified 'Name', and 'Type', and appends it to the 'Owned Parameter' containment reference list.

Parameters:
name - The 'Name' for the new Parameter, or null.
type - The 'Type' for the new Parameter, or null.
Returns:
The new Parameter.
See Also:
getOwnedParameters()

getOwnedParameter

Parameter getOwnedParameter(java.lang.String name,
                            Type type)
Retrieves the first Parameter with the specified 'Name', and 'Type' from the 'Owned Parameter' containment reference list.

Parameters:
name - The 'Name' of the Parameter to retrieve, or null.
type - The 'Type' of the Parameter to retrieve, or null.
Returns:
The first Parameter with the specified 'Name', and 'Type', or null.
See Also:
getOwnedParameters()

getOwnedParameter

Parameter getOwnedParameter(java.lang.String name,
                            Type type,
                            boolean ignoreCase,
                            boolean createOnDemand)
Retrieves the first Parameter with the specified 'Name', and 'Type' from the 'Owned Parameter' containment reference list.

Parameters:
name - The 'Name' of the Parameter to retrieve, or null.
type - The 'Type' of the Parameter to retrieve, or null.
ignoreCase - Whether to ignore case in String comparisons.
createOnDemand - Whether to create a Parameter on demand if not found.
Returns:
The first Parameter with the specified 'Name', and 'Type', or null.
See Also:
getOwnedParameters()

getContext

BehavioredClassifier getContext()
Returns the value of the 'Context' reference.

This feature subsets the following features:

The BehavioredClassifier that is the context for the execution of the Behavior. A Behavior that is directly owned as a nestedClassifier does not have a context. Otherwise, to determine the context of a Behavior, find the first BehavioredClassifier reached by following the chain of owner relationships from the Behavior, if any. If there is such a BehavioredClassifier, then it is the context, unless it is itself a Behavior with a non-empty context, in which case that is also the context for the original Behavior. For example, following this algorithm, the context of an entry Behavior in a StateMachine is the BehavioredClassifier that owns the StateMachine. The features of the context BehavioredClassifier as well as the Elements visible to the context Classifier are visible to the Behavior.

From package UML::CommonBehavior.

Returns:
the value of the 'Context' reference.
See Also:
UMLPackage.getBehavior_Context()

getPreconditions

org.eclipse.emf.common.util.EList<Constraint> getPreconditions()
Returns the value of the 'Precondition' reference list. The list contents are of type Constraint.

This feature subsets the following features:

An optional set of Constraints specifying what must be fulfilled before the Behavior is invoked.

From package UML::CommonBehavior.

Returns:
the value of the 'Precondition' reference list.
See Also:
UMLPackage.getBehavior_Precondition()

createPrecondition

Constraint createPrecondition(java.lang.String name,
                              org.eclipse.emf.ecore.EClass eClass)
Creates a new Constraint, with the specified 'Name', and appends it to the 'Precondition' reference list.

Parameters:
name - The 'Name' for the new Constraint, or null.
eClass - The Ecore class of the Constraint to create.
Returns:
The new Constraint.
See Also:
getPreconditions()

createPrecondition

Constraint createPrecondition(java.lang.String name)
Creates a new Constraint, with the specified 'Name', and appends it to the 'Precondition' reference list.

Parameters:
name - The 'Name' for the new Constraint, or null.
Returns:
The new Constraint.
See Also:
getPreconditions()

getPrecondition

Constraint getPrecondition(java.lang.String name)
Retrieves the first Constraint with the specified 'Name' from the 'Precondition' reference list.

Parameters:
name - The 'Name' of the Constraint to retrieve, or null.
Returns:
The first Constraint with the specified 'Name', or null.
See Also:
getPreconditions()

getPrecondition

Constraint getPrecondition(java.lang.String name,
                           boolean ignoreCase,
                           org.eclipse.emf.ecore.EClass eClass,
                           boolean createOnDemand)
Retrieves the first Constraint with the specified 'Name' from the 'Precondition' reference list.

Parameters:
name - The 'Name' of the Constraint to retrieve, or null.
ignoreCase - Whether to ignore case in String comparisons.
eClass - The Ecore class of the Constraint to retrieve, or null.
createOnDemand - Whether to create a Constraint on demand if not found.
Returns:
The first Constraint with the specified 'Name', or null.
See Also:
getPreconditions()

getPostconditions

org.eclipse.emf.common.util.EList<Constraint> getPostconditions()
Returns the value of the 'Postcondition' reference list. The list contents are of type Constraint.

This feature subsets the following features:

An optional set of Constraints specifying what is fulfilled after the execution of the Behavior is completed, if its precondition was fulfilled before its invocation.

From package UML::CommonBehavior.

Returns:
the value of the 'Postcondition' reference list.
See Also:
UMLPackage.getBehavior_Postcondition()

createPostcondition

Constraint createPostcondition(java.lang.String name,
                               org.eclipse.emf.ecore.EClass eClass)
Creates a new Constraint, with the specified 'Name', and appends it to the 'Postcondition' reference list.

Parameters:
name - The 'Name' for the new Constraint, or null.
eClass - The Ecore class of the Constraint to create.
Returns:
The new Constraint.
See Also:
getPostconditions()

createPostcondition

Constraint createPostcondition(java.lang.String name)
Creates a new Constraint, with the specified 'Name', and appends it to the 'Postcondition' reference list.

Parameters:
name - The 'Name' for the new Constraint, or null.
Returns:
The new Constraint.
See Also:
getPostconditions()

getPostcondition

Constraint getPostcondition(java.lang.String name)
Retrieves the first Constraint with the specified 'Name' from the 'Postcondition' reference list.

Parameters:
name - The 'Name' of the Constraint to retrieve, or null.
Returns:
The first Constraint with the specified 'Name', or null.
See Also:
getPostconditions()

getPostcondition

Constraint getPostcondition(java.lang.String name,
                            boolean ignoreCase,
                            org.eclipse.emf.ecore.EClass eClass,
                            boolean createOnDemand)
Retrieves the first Constraint with the specified 'Name' from the 'Postcondition' reference list.

Parameters:
name - The 'Name' of the Constraint to retrieve, or null.
ignoreCase - Whether to ignore case in String comparisons.
eClass - The Ecore class of the Constraint to retrieve, or null.
createOnDemand - Whether to create a Constraint on demand if not found.
Returns:
The first Constraint with the specified 'Name', or null.
See Also:
getPostconditions()

getOwnedParameterSets

org.eclipse.emf.common.util.EList<ParameterSet> getOwnedParameterSets()
Returns the value of the 'Owned Parameter Set' containment reference list. The list contents are of type ParameterSet.

This feature subsets the following features:

The ParameterSets owned by this Behavior.

From package UML::CommonBehavior.

Returns:
the value of the 'Owned Parameter Set' containment reference list.
See Also:
UMLPackage.getBehavior_OwnedParameterSet()

createOwnedParameterSet

ParameterSet createOwnedParameterSet(java.lang.String name)
Creates a new ParameterSet, with the specified 'Name', and appends it to the 'Owned Parameter Set' containment reference list.

Parameters:
name - The 'Name' for the new ParameterSet, or null.
Returns:
The new ParameterSet.
See Also:
getOwnedParameterSets()

getOwnedParameterSet

ParameterSet getOwnedParameterSet(java.lang.String name)
Retrieves the first ParameterSet with the specified 'Name' from the 'Owned Parameter Set' containment reference list.

Parameters:
name - The 'Name' of the ParameterSet to retrieve, or null.
Returns:
The first ParameterSet with the specified 'Name', or null.
See Also:
getOwnedParameterSets()

getOwnedParameterSet

ParameterSet getOwnedParameterSet(java.lang.String name,
                                  boolean ignoreCase,
                                  boolean createOnDemand)
Retrieves the first ParameterSet with the specified 'Name' from the 'Owned Parameter Set' containment reference list.

Parameters:
name - The 'Name' of the ParameterSet to retrieve, or null.
ignoreCase - Whether to ignore case in String comparisons.
createOnDemand - Whether to create a ParameterSet on demand if not found.
Returns:
The first ParameterSet with the specified 'Name', or null.
See Also:
getOwnedParameterSets()

getSpecification

BehavioralFeature getSpecification()
Returns the value of the 'Specification' reference. It is bidirectional and its opposite is 'Method'. Designates a BehavioralFeature that the Behavior implements. The BehavioralFeature must be owned by the BehavioredClassifier that owns the Behavior or be inherited by it. The Parameters of the BehavioralFeature and the implementing Behavior must match. A Behavior does not need to have a specification, in which case it either is the classifierBehavior of a BehavioredClassifier or it can only be invoked by another Behavior of the Classifier.

From package UML::CommonBehavior.

Returns:
the value of the 'Specification' reference.
See Also:
setSpecification(BehavioralFeature), UMLPackage.getBehavior_Specification(), BehavioralFeature.getMethods()

setSpecification

void setSpecification(BehavioralFeature value)
Sets the value of the 'Specification' reference.

Parameters:
value - the new value of the 'Specification' reference.
See Also:
getSpecification()

validateParametersMatch

boolean validateParametersMatch(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                java.util.Map<java.lang.Object,java.lang.Object> context)
If a Behavior has a specification BehavioralFeature, then it must have the same number of ownedParameters as its specification. The Behavior Parameters must also "match" the BehavioralParameter Parameters, but the exact requirements for this matching are not formalized. specification <> null implies ownedParameter->size() = specification.ownedParameter->size()

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

validateFeatureOfContextClassifier

boolean validateFeatureOfContextClassifier(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                           java.util.Map<java.lang.Object,java.lang.Object> context)
The specification BehavioralFeature must be a feature (possibly inherited) of the context BehavioredClassifier of the Behavior. _'context'.feature->includes(specification)

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

behavioredClassifier

BehavioredClassifier behavioredClassifier(Element from)
The first BehavioredClassifier reached by following the chain of owner relationships from the Behavior, if any. if from.oclIsKindOf(BehavioredClassifier) then from.oclAsType(BehavioredClassifier) else if from.owner = null then null else self.behavioredClassifier(from.owner) endif endif

From package UML::CommonBehavior.


inputParameters

org.eclipse.emf.common.util.EList<Parameter> inputParameters()
The in and inout ownedParameters of the Behavior. result = (ownedParameter->select(direction=ParameterDirectionKind::_'in' or direction=ParameterDirectionKind::inout))

From package UML::CommonBehavior.


outputParameters

org.eclipse.emf.common.util.EList<Parameter> outputParameters()
The out, inout and return ownedParameters. result = (ownedParameter->select(direction=ParameterDirectionKind::out or direction=ParameterDirectionKind::inout or direction=ParameterDirectionKind::return))

From package UML::CommonBehavior.


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