public interface Behavior extends Class
From package UML::CommonBehavior.
The following features are supported:
UMLPackage.getBehavior()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
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.
|
createNestedClassifier, createOwnedOperation, createOwnedOperation, createOwnedReception, getExtension, getExtension, getExtensions, getNestedClassifier, getNestedClassifier, getNestedClassifiers, getOwnedOperation, getOwnedOperation, getOwnedOperations, getOwnedReception, getOwnedReception, getOwnedReceptions, getSuperClass, getSuperClass, getSuperClasses, isActive, isMetaclass, setIsActive, validatePassiveClass
createOwnedPort, getOwnedPort, getOwnedPort, getOwnedPort, getOwnedPorts
allRoles, createOwnedAttribute, createOwnedAttribute, createOwnedAttribute, createOwnedConnector, getOwnedAttribute, getOwnedAttribute, getOwnedAttributes, getOwnedConnector, getOwnedConnector, getOwnedConnectors, getPart, getPart, getParts, getRole, getRole, getRoles
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
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
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateNonLeafRedefinition, validateRedefinitionConsistent, validateRedefinitionContextValid
conformsTo, createAssociation, getAssociations, getPackage, setPackage
validateNamespaceNeedsVisibility
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
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
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
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature
createClassifierBehavior, createInterfaceRealization, createOwnedBehavior, getAllImplementedInterfaces, getClassifierBehavior, getImplementedInterfaces, getInterfaceRealization, getInterfaceRealization, getInterfaceRealizations, getOwnedBehavior, getOwnedBehavior, getOwnedBehaviors, setClassifierBehavior, validateClassBehavior
boolean isReentrant()
"true"
.
Tells whether the Behavior can be invoked while it is still executing from a previous invocation.
From package UML::CommonBehavior.
isSetIsReentrant()
,
unsetIsReentrant()
,
setIsReentrant(boolean)
,
UMLPackage.getBehavior_IsReentrant()
void setIsReentrant(boolean value)
Is Reentrant
' attribute.
value
- the new value of the 'Is Reentrant' attribute.isSetIsReentrant()
,
unsetIsReentrant()
,
isReentrant()
void unsetIsReentrant()
Is Reentrant
' attribute.
isSetIsReentrant()
,
isReentrant()
,
setIsReentrant(boolean)
boolean isSetIsReentrant()
Is Reentrant
' attribute is set.
unsetIsReentrant()
,
isReentrant()
,
setIsReentrant(boolean)
org.eclipse.emf.common.util.EList<Behavior> getRedefinedBehaviors()
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.
UMLPackage.getBehavior_RedefinedBehavior()
Behavior getRedefinedBehavior(java.lang.String name)
Behavior
with the specified 'Name' from the 'Redefined Behavior' reference list.
name
- The 'Name' of the Behavior
to retrieve, or null
.Behavior
with the specified 'Name', or null
.getRedefinedBehaviors()
Behavior getRedefinedBehavior(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Behavior
with the specified 'Name' from the 'Redefined Behavior' reference list.
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
.Behavior
with the specified 'Name', or null
.getRedefinedBehaviors()
boolean validateMostOneBehavior(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
org.eclipse.emf.common.util.EList<Parameter> getOwnedParameters()
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.
UMLPackage.getBehavior_OwnedParameter()
Parameter createOwnedParameter(java.lang.String name, Type type)
Parameter
, with the specified 'Name', and 'Type', and appends it to the 'Owned Parameter' containment reference list.
name
- The 'Name' for the new Parameter
, or null
.type
- The 'Type' for the new Parameter
, or null
.Parameter
.getOwnedParameters()
Parameter getOwnedParameter(java.lang.String name, Type type)
Parameter
with the specified 'Name', and 'Type' from the 'Owned Parameter' containment reference list.
name
- The 'Name' of the Parameter
to retrieve, or null
.type
- The 'Type' of the Parameter
to retrieve, or null
.Parameter
with the specified 'Name', and 'Type', or null
.getOwnedParameters()
Parameter getOwnedParameter(java.lang.String name, Type type, boolean ignoreCase, boolean createOnDemand)
Parameter
with the specified 'Name', and 'Type' from the 'Owned Parameter' containment reference list.
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.Parameter
with the specified 'Name', and 'Type', or null
.getOwnedParameters()
BehavioredClassifier getContext()
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.
UMLPackage.getBehavior_Context()
org.eclipse.emf.common.util.EList<Constraint> getPreconditions()
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.
UMLPackage.getBehavior_Precondition()
Constraint createPrecondition(java.lang.String name, org.eclipse.emf.ecore.EClass eClass)
Constraint
, with the specified 'Name', and appends it to the 'Precondition' reference list.
name
- The 'Name' for the new Constraint
, or null
.eClass
- The Ecore class of the Constraint
to create.Constraint
.getPreconditions()
Constraint createPrecondition(java.lang.String name)
Constraint
, with the specified 'Name', and appends it to the 'Precondition' reference list.
name
- The 'Name' for the new Constraint
, or null
.Constraint
.getPreconditions()
Constraint getPrecondition(java.lang.String name)
Constraint
with the specified 'Name' from the 'Precondition' reference list.
name
- The 'Name' of the Constraint
to retrieve, or null
.Constraint
with the specified 'Name', or null
.getPreconditions()
Constraint getPrecondition(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Constraint
with the specified 'Name' from the 'Precondition' reference list.
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.Constraint
with the specified 'Name', or null
.getPreconditions()
org.eclipse.emf.common.util.EList<Constraint> getPostconditions()
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.
UMLPackage.getBehavior_Postcondition()
Constraint createPostcondition(java.lang.String name, org.eclipse.emf.ecore.EClass eClass)
Constraint
, with the specified 'Name', and appends it to the 'Postcondition' reference list.
name
- The 'Name' for the new Constraint
, or null
.eClass
- The Ecore class of the Constraint
to create.Constraint
.getPostconditions()
Constraint createPostcondition(java.lang.String name)
Constraint
, with the specified 'Name', and appends it to the 'Postcondition' reference list.
name
- The 'Name' for the new Constraint
, or null
.Constraint
.getPostconditions()
Constraint getPostcondition(java.lang.String name)
Constraint
with the specified 'Name' from the 'Postcondition' reference list.
name
- The 'Name' of the Constraint
to retrieve, or null
.Constraint
with the specified 'Name', or null
.getPostconditions()
Constraint getPostcondition(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Constraint
with the specified 'Name' from the 'Postcondition' reference list.
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.Constraint
with the specified 'Name', or null
.getPostconditions()
org.eclipse.emf.common.util.EList<ParameterSet> getOwnedParameterSets()
ParameterSet
.
This feature subsets the following features:
The ParameterSets owned by this Behavior.From package UML::CommonBehavior.
UMLPackage.getBehavior_OwnedParameterSet()
ParameterSet createOwnedParameterSet(java.lang.String name)
ParameterSet
, with the specified 'Name', and appends it to the 'Owned Parameter Set' containment reference list.
name
- The 'Name' for the new ParameterSet
, or null
.ParameterSet
.getOwnedParameterSets()
ParameterSet getOwnedParameterSet(java.lang.String name)
ParameterSet
with the specified 'Name' from the 'Owned Parameter Set' containment reference list.
name
- The 'Name' of the ParameterSet
to retrieve, or null
.ParameterSet
with the specified 'Name', or null
.getOwnedParameterSets()
ParameterSet getOwnedParameterSet(java.lang.String name, boolean ignoreCase, boolean createOnDemand)
ParameterSet
with the specified 'Name' from the 'Owned Parameter Set' containment reference list.
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.ParameterSet
with the specified 'Name', or null
.getOwnedParameterSets()
BehavioralFeature getSpecification()
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.
setSpecification(BehavioralFeature)
,
UMLPackage.getBehavior_Specification()
,
BehavioralFeature.getMethods()
void setSpecification(BehavioralFeature value)
Specification
' reference.
value
- the new value of the 'Specification' reference.getSpecification()
boolean validateParametersMatch(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateFeatureOfContextClassifier(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
BehavioredClassifier behavioredClassifier(Element from)
From package UML::CommonBehavior.
org.eclipse.emf.common.util.EList<Parameter> inputParameters()
From package UML::CommonBehavior.
org.eclipse.emf.common.util.EList<Parameter> outputParameters()
From package UML::CommonBehavior.