public interface Behavior extends Class
The following features are supported:
UMLPackage.getBehavior()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
Parameter |
createOwnedParameter(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(String name)
Creates a new
ParameterSet , with the specified 'Name', and appends it to the '
Owned Parameter Set' containment reference list |
Constraint |
createPostcondition(String name)
Creates a new
Constraint , with the specified 'Name', and appends it to the '
Postcondition' containment reference list |
Constraint |
createPostcondition(String name,
EClass eClass)
Creates a new
Constraint , with the specified 'Name', and appends it to the '
Postcondition' containment reference list |
Constraint |
createPrecondition(String name)
Creates a new
Constraint , with the specified 'Name', and appends it to the '
Precondition' containment reference list |
Constraint |
createPrecondition(String name,
EClass eClass)
Creates a new
Constraint , with the specified 'Name', and appends it to the '
Precondition' containment reference list |
BehavioredClassifier |
getContext()
Returns the value of the 'Context' reference
|
Parameter |
getOwnedParameter(String name,
Type type)
Retrieves the first
Parameter with the specified 'Name', and 'Type' from
the 'Owned Parameter' containment reference list |
Parameter |
getOwnedParameter(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 |
MDWEList<Parameter> |
getOwnedParameters()
Returns the value of the 'Owned Parameter' containment reference list.
|
ParameterSet |
getOwnedParameterSet(String name)
Retrieves the first
ParameterSet with the specified 'Name' from the '
Owned Parameter Set' containment reference list |
ParameterSet |
getOwnedParameterSet(String name,
boolean ignoreCase,
boolean createOnDemand)
Retrieves the first
ParameterSet with the specified 'Name' from the '
Owned Parameter Set' containment reference list |
MDWEList<ParameterSet> |
getOwnedParameterSets()
Returns the value of the 'Owned Parameter Set' containment reference list.
|
Constraint |
getPostcondition(String name)
Retrieves the first
Constraint with the specified 'Name' from the '
Postcondition' containment reference list |
Constraint |
getPostcondition(String name,
boolean ignoreCase,
EClass eClass,
boolean createOnDemand)
Retrieves the first
Constraint with the specified 'Name' from the '
Postcondition' containment reference list |
MDWEList<Constraint> |
getPostconditions()
Returns the value of the 'Postcondition' containment reference list.
|
Constraint |
getPrecondition(String name)
Retrieves the first
Constraint with the specified 'Name' from the '
Precondition' containment reference list |
Constraint |
getPrecondition(String name,
boolean ignoreCase,
EClass eClass,
boolean createOnDemand)
Retrieves the first
Constraint with the specified 'Name' from the '
Precondition' containment reference list |
MDWEList<Constraint> |
getPreconditions()
Returns the value of the 'Precondition' containment reference list.
|
Behavior |
getRedefinedBehavior(String name)
Retrieves the first
Behavior with the specified 'Name' from the '
Redefined Behavior' reference list |
Behavior |
getRedefinedBehavior(String name,
boolean ignoreCase,
EClass eClass)
Retrieves the first
Behavior with the specified 'Name' from the '
Redefined Behavior' reference list |
MDWEList<Behavior> |
getRedefinedBehaviors()
Returns the value of the 'Redefined Behavior' reference list.
|
BehavioralFeature |
getSpecification()
Returns the value of the 'Specification' reference.
|
boolean |
isReentrant()
Returns the value of the 'Is Reentrant' attribute.
|
void |
setIsReentrant(boolean value)
Sets the value of the '
Is Reentrant ' attribute |
void |
setSpecification(BehavioralFeature value)
Sets the value of the '
Specification ' reference |
boolean |
validateFeatureOfContextClassifier(DiagnosticChain diagnostics,
Map context)
The implemented behavioral feature must be a feature (possibly inherited) of the context classifier of the behavior.
|
boolean |
validateMostOneBehaviour(DiagnosticChain diagnostics,
Map context)
There may be at most one behavior for a given pairing of classifier (as owner of the behavior) and behavioral feature (as specification of the
behavior).
|
boolean |
validateMustRealize(DiagnosticChain diagnostics,
Map context)
If the implemented behavioral feature has been redefined in the ancestors of the owner of the behavior, then the behavior must realize the
latest redefining behavioral feature.
|
boolean |
validateParametersMatch(DiagnosticChain diagnostics,
Map context)
The parameters of the behavior must match the parameters of the implemented behavioral feature.
|
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, getOwnedPorts
createOwnedAttribute, createOwnedAttribute, createOwnedAttribute, createOwnedConnector, getOwnedAttribute, getOwnedAttribute, getOwnedAttributes, getOwnedConnector, getOwnedConnector, getOwnedConnectors, getPart, getPart, getParts, getRole, getRole, getRoles, validateMultiplicities
allFeatures, allParents, conformsTo, createCollaborationUse, createGeneralization, createOwnedUseCase, createRepresentation, createSubstitution, 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, maySpecializeType, parents, setIsAbstract, setIsFinalSpecialization, setRepresentation, validateGeneralizationHierarchies, validateMapsToGeneralizationSet, validateNoCyclesInGeneralization, validateSpecializeType
createElementImport, createElementImport, createOwnedDiagram, createOwnedRule, createOwnedRule, createPackageImport, createPackageImport, excludeCollisions, getElementImport, getElementImport, getElementImports, getImportedElements, getImportedMember, getImportedMember, getImportedMembers, getImportedPackages, getMember, getMember, getMembers, getNamesOfMember, getOwnedDiagrams, getOwnedDiagrams, getOwnedMember, getOwnedMember, getOwnedMembers, getOwnedRule, getOwnedRule, getOwnedRules, getPackageImport, getPackageImport, getPackageImports, importMembers, membersAreDistinguishable, validateMembersDistinguishable
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid
conformsTo, createAssociation, getAssociations, getPackage, setPackage
allNamespaces, allOwningPackages, createDependency, createNameExpression, 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
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
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, createOwnedTrigger, getAllImplementedInterfaces, getClassifierBehavior, getImplementedInterfaces, getInterfaceRealization, getInterfaceRealization, getInterfaceRealizations, getOwnedBehavior, getOwnedBehavior, getOwnedBehaviors, getOwnedTrigger, getOwnedTrigger, getOwnedTriggers, setClassifierBehavior, validateClassBehavior
boolean isReentrant()
"false"
.
Tells whether the behavior can be invoked while it is still executing from a previous invocation.
setIsReentrant(boolean)
,
UMLPackage.getBehavior_IsReentrant()
void setIsReentrant(boolean value)
Is Reentrant
' attribute.
value
- the new value of the 'Is Reentrant' attribute.isReentrant()
MDWEList<Behavior> getRedefinedBehaviors()
Behavior
.
References a behavior that this behavior redefines. A subtype of Behavior may redefine any other subtype of Behavior. If the behavior
implements a behavioral feature, it replaces the redefined behavior. If the behavior is a classifier behavior, it extends the redefined
behavior.
UMLPackage.getBehavior_RedefinedBehavior()
Behavior getRedefinedBehavior(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(String name, boolean ignoreCase, 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()
MDWEList<Parameter> getOwnedParameters()
Parameter
.
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.
UMLPackage.getBehavior_OwnedParameter()
Parameter createOwnedParameter(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(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(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()
UMLPackage.getBehavior_Context()
MDWEList<Constraint> getPreconditions()
Constraint
.
An optional set of Constraints specifying what must be fulfilled when the behavior is invoked.
UMLPackage.getBehavior_Precondition()
Constraint createPrecondition(String name, EClass eClass)
Constraint
, with the specified 'Name', and appends it to the '
Precondition' containment reference list.
name
- The 'Name' for the new Constraint
, or null
.eClass
- The Ecore class of the Constraint
to create.Constraint
.getPreconditions()
Constraint createPrecondition(String name)
Constraint
, with the specified 'Name', and appends it to the '
Precondition' containment reference list.
name
- The 'Name' for the new Constraint
, or null
.Constraint
.getPreconditions()
Constraint getPrecondition(String name)
Constraint
with the specified 'Name' from the '
Precondition' containment reference list.
name
- The 'Name' of the Constraint
to retrieve, or null
.Constraint
with the specified 'Name', or null
.getPreconditions()
Constraint getPrecondition(String name, boolean ignoreCase, EClass eClass, boolean createOnDemand)
Constraint
with the specified 'Name' from the '
Precondition' containment 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()
MDWEList<Constraint> getPostconditions()
Constraint
.
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.
UMLPackage.getBehavior_Postcondition()
Constraint createPostcondition(String name, EClass eClass)
Constraint
, with the specified 'Name', and appends it to the '
Postcondition' containment reference list.
name
- The 'Name' for the new Constraint
, or null
.eClass
- The Ecore class of the Constraint
to create.Constraint
.getPostconditions()
Constraint createPostcondition(String name)
Constraint
, with the specified 'Name', and appends it to the '
Postcondition' containment reference list.
name
- The 'Name' for the new Constraint
, or null
.Constraint
.getPostconditions()
Constraint getPostcondition(String name)
Constraint
with the specified 'Name' from the '
Postcondition' containment reference list.
name
- The 'Name' of the Constraint
to retrieve, or null
.Constraint
with the specified 'Name', or null
.getPostconditions()
Constraint getPostcondition(String name, boolean ignoreCase, EClass eClass, boolean createOnDemand)
Constraint
with the specified 'Name' from the '
Postcondition' containment 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()
MDWEList<ParameterSet> getOwnedParameterSets()
ParameterSet
.
The ParameterSets owned by this Behavior.
UMLPackage.getBehavior_OwnedParameterSet()
ParameterSet createOwnedParameterSet(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(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(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 behavioral feature that the behavior implements. The behavioral feature must be owned by the classifier that owns the behavior or
be inherited by it. The parameters of the behavioral feature and the implementing behavior must match. If a behavior does not have a
specification, it is directly associated with a classifier (i.e., it is the behavior of the classifier as a whole).
setSpecification(BehavioralFeature)
,
UMLPackage.getBehavior_Specification()
,
BehavioralFeature.getMethods()
void setSpecification(BehavioralFeature value)
Specification
' reference.
value
- the new value of the 'Specification' reference.getSpecification()
boolean validateParametersMatch(DiagnosticChain diagnostics, Map context)
boolean validateFeatureOfContextClassifier(DiagnosticChain diagnostics, Map context)
boolean validateMustRealize(DiagnosticChain diagnostics, Map context)
boolean validateMostOneBehaviour(DiagnosticChain diagnostics, Map context)