Package com.sodius.mdw.metamodel.uml21
Interface BehavioralFeature
-
- All Superinterfaces:
Comparable<Object>,Element,org.eclipse.emf.ecore.EModelElement,org.eclipse.emf.ecore.EObject,Feature,MDWEObject,MDWObject,NamedElement,Namespace,org.eclipse.emf.common.notify.Notifier,RedefinableElement
public interface BehavioralFeature extends Namespace, Feature
A representation of the model object 'Behavioral Feature'. A behavioral feature is a feature of a classifier that specifies an aspect of the behavior of its instances. A behavioral feature is implemented (realized) by a behavior. A behavioral feature specifies that a classifier will respond to a designated request by invoking its implementing method. A behavioral feature owns zero or more parameter sets.The following features are supported:
- See Also:
UMLPackage.getBehavioralFeature()
-
-
Field Summary
-
Fields inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
SEPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ParametercreateOwnedParameter(String name, Type type)Creates a newParameter, with the specified 'Name', and 'Type', and appends it to the 'Owned Parameter' containment reference list.ParameterSetcreateOwnedParameterSet(String name)Creates a newParameterSet, with the specified 'Name', and appends it to the ' Owned Parameter Set' containment reference list.ParametercreateReturnResult(String name, Type type)Creates a return result parameter with the specified name and type.CallConcurrencyKindgetConcurrency()Returns the value of the 'Concurrency' attribute.BehaviorgetMethod(String name)Retrieves the firstBehaviorwith the specified 'Name' from the 'Method' reference list.BehaviorgetMethod(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)Retrieves the firstBehaviorwith the specified 'Name' from the 'Method' reference list.MDWEList<Behavior>getMethods()Returns the value of the 'Method' reference list.ParametergetOwnedParameter(String name, Type type)Retrieves the firstParameterwith the specified 'Name', and 'Type' from the 'Owned Parameter' containment reference list.ParametergetOwnedParameter(String name, Type type, boolean ignoreCase, boolean createOnDemand)Retrieves the firstParameterwith 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.ParameterSetgetOwnedParameterSet(String name)Retrieves the firstParameterSetwith the specified 'Name' from the ' Owned Parameter Set' containment reference list.ParameterSetgetOwnedParameterSet(String name, boolean ignoreCase, boolean createOnDemand)Retrieves the firstParameterSetwith 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.TypegetRaisedException(String name)Retrieves the firstTypewith the specified 'Name' from the ' Raised Exception' reference list.TypegetRaisedException(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)Retrieves the firstTypewith the specified 'Name' from the ' Raised Exception' reference list.MDWEList<Type>getRaisedExceptions()Returns the value of the 'Raised Exception' reference list.booleanisAbstract()Returns the value of the 'Is Abstract' attribute.voidsetConcurrency(CallConcurrencyKind value)Sets the value of the 'Concurrency' attribute.voidsetIsAbstract(boolean value)Sets the value of the 'Is Abstract' attribute.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.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 com.sodius.mdw.metamodel.uml21.Feature
getFeaturingClassifier, getFeaturingClassifier, getFeaturingClassifiers, isStatic, setIsStatic
-
Methods inherited from interface com.sodius.mdw.core.model.MDWObject
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
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
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
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Namespace
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
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.RedefinableElement
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid
-
-
-
-
Method Detail
-
getOwnedParameters
MDWEList<Parameter> getOwnedParameters()
Returns the value of the 'Owned Parameter' containment reference list. The list contents are of typeParameter. Specifies the ordered set of formal parameters of this BehavioralFeature.- Returns:
- the value of the 'Owned Parameter' containment reference list.
- See Also:
UMLPackage.getBehavioralFeature_OwnedParameter()
-
createOwnedParameter
Parameter createOwnedParameter(String name, Type type)
Creates a newParameter, with the specified 'Name', and 'Type', and appends it to the 'Owned Parameter' containment reference list.- Parameters:
name- The 'Name' for the newParameter, ornull.type- The 'Type' for the newParameter, ornull.- Returns:
- The new
Parameter. - See Also:
getOwnedParameters()
-
getOwnedParameter
Parameter getOwnedParameter(String name, Type type)
Retrieves the firstParameterwith the specified 'Name', and 'Type' from the 'Owned Parameter' containment reference list.- Parameters:
name- The 'Name' of theParameterto retrieve, ornull.type- The 'Type' of theParameterto retrieve, ornull.- Returns:
- The first
Parameterwith the specified 'Name', and 'Type', ornull. - See Also:
getOwnedParameters()
-
getOwnedParameter
Parameter getOwnedParameter(String name, Type type, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstParameterwith the specified 'Name', and 'Type' from the 'Owned Parameter' containment reference list.- Parameters:
name- The 'Name' of theParameterto retrieve, ornull.type- The 'Type' of theParameterto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.createOnDemand- Whether to create aParameteron demand if not found.- Returns:
- The first
Parameterwith the specified 'Name', and 'Type', ornull. - See Also:
getOwnedParameters()
-
isAbstract
boolean isAbstract()
Returns the value of the 'Is Abstract' attribute. The default value is"false". If true, then the behavioral feature does not have an implementation, and one must be supplied by a more specific element. If false, the behavioral feature must have an implementation in the classifier or one must be inherited from a more general element.- Returns:
- the value of the 'Is Abstract' attribute.
- See Also:
setIsAbstract(boolean),UMLPackage.getBehavioralFeature_IsAbstract()
-
setIsAbstract
void setIsAbstract(boolean value)
Sets the value of the 'Is Abstract' attribute.- Parameters:
value- the new value of the 'Is Abstract' attribute.- See Also:
isAbstract()
-
getMethods
MDWEList<Behavior> getMethods()
Returns the value of the 'Method' reference list. The list contents are of typeBehavior. It is bidirectional and its opposite is 'Specification'. A behavioral description that implements the behavioral feature. There may be at most one behavior for a particular pairing of a classifier (as owner of the behavior) and a behavioral feature (as specification of the behavior).- Returns:
- the value of the 'Method' reference list.
- See Also:
UMLPackage.getBehavioralFeature_Method(),Behavior.getSpecification()
-
getMethod
Behavior getMethod(String name)
Retrieves the firstBehaviorwith the specified 'Name' from the 'Method' reference list.- Parameters:
name- The 'Name' of theBehaviorto retrieve, ornull.- Returns:
- The first
Behaviorwith the specified 'Name', ornull. - See Also:
getMethods()
-
getMethod
Behavior getMethod(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstBehaviorwith the specified 'Name' from the 'Method' reference list.- Parameters:
name- The 'Name' of theBehaviorto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.eClass- The Ecore class of theBehaviorto retrieve, ornull.- Returns:
- The first
Behaviorwith the specified 'Name', ornull. - See Also:
getMethods()
-
getConcurrency
CallConcurrencyKind getConcurrency()
Returns the value of the 'Concurrency' attribute. The default value is"sequential". The literals are from the enumerationCallConcurrencyKind. Specifies the semantics of concurrent calls to the same passive instance (i.e., an instance originating from a class with isActive being false). Active instances control access to their own behavioral features.- Returns:
- the value of the 'Concurrency' attribute.
- See Also:
CallConcurrencyKind,setConcurrency(CallConcurrencyKind),UMLPackage.getBehavioralFeature_Concurrency()
-
setConcurrency
void setConcurrency(CallConcurrencyKind value)
Sets the value of the 'Concurrency' attribute.- Parameters:
value- the new value of the 'Concurrency' attribute.- See Also:
CallConcurrencyKind,getConcurrency()
-
getRaisedExceptions
MDWEList<Type> getRaisedExceptions()
Returns the value of the 'Raised Exception' reference list. The list contents are of typeType. References the Types representing exceptions that may be raised during an invocation of this feature. The signals that the behavioral feature raises as exceptions.- Returns:
- the value of the 'Raised Exception' reference list.
- See Also:
UMLPackage.getBehavioralFeature_RaisedException()
-
getRaisedException
Type getRaisedException(String name)
Retrieves the firstTypewith the specified 'Name' from the ' Raised Exception' reference list.- Parameters:
name- The 'Name' of theTypeto retrieve, ornull.- Returns:
- The first
Typewith the specified 'Name', ornull. - See Also:
getRaisedExceptions()
-
getRaisedException
Type getRaisedException(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstTypewith the specified 'Name' from the ' Raised Exception' reference list.- Parameters:
name- The 'Name' of theTypeto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.eClass- The Ecore class of theTypeto retrieve, ornull.- Returns:
- The first
Typewith the specified 'Name', ornull. - See Also:
getRaisedExceptions()
-
getOwnedParameterSets
MDWEList<ParameterSet> getOwnedParameterSets()
Returns the value of the 'Owned Parameter Set' containment reference list. The list contents are of typeParameterSet. The ParameterSets owned by this BehavioralFeature.- Returns:
- the value of the 'Owned Parameter Set' containment reference list.
- See Also:
UMLPackage.getBehavioralFeature_OwnedParameterSet()
-
createOwnedParameterSet
ParameterSet createOwnedParameterSet(String name)
Creates a newParameterSet, with the specified 'Name', and appends it to the ' Owned Parameter Set' containment reference list.- Parameters:
name- The 'Name' for the newParameterSet, ornull.- Returns:
- The new
ParameterSet. - See Also:
getOwnedParameterSets()
-
getOwnedParameterSet
ParameterSet getOwnedParameterSet(String name)
Retrieves the firstParameterSetwith the specified 'Name' from the ' Owned Parameter Set' containment reference list.- Parameters:
name- The 'Name' of theParameterSetto retrieve, ornull.- Returns:
- The first
ParameterSetwith the specified 'Name', ornull. - See Also:
getOwnedParameterSets()
-
getOwnedParameterSet
ParameterSet getOwnedParameterSet(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstParameterSetwith the specified 'Name' from the ' Owned Parameter Set' containment reference list.- Parameters:
name- The 'Name' of theParameterSetto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.createOnDemand- Whether to create aParameterSeton demand if not found.- Returns:
- The first
ParameterSetwith the specified 'Name', ornull. - See Also:
getOwnedParameterSets()
-
-