Package com.sodius.mdw.metamodel.uml21
Interface BehavioredClassifier
-
- All Superinterfaces:
Classifier,Comparable<Object>,Element,org.eclipse.emf.ecore.EModelElement,org.eclipse.emf.ecore.EObject,MDWEObject,MDWObject,NamedElement,Namespace,org.eclipse.emf.common.notify.Notifier,PackageableElement,ParameterableElement,RedefinableElement,TemplateableElement,Type
- All Known Subinterfaces:
Activity,Actor,AssociationClass,Behavior,Class,Collaboration,Component,Device,ExecutionEnvironment,FunctionBehavior,Interaction,Node,OpaqueBehavior,ProtocolStateMachine,StateMachine,Stereotype,UseCase
public interface BehavioredClassifier extends Classifier
A representation of the model object 'Behaviored Classifier'. A behaviored classifier may have an interface realization. A classifier can have behavior specifications defined in its namespace. One of these may specify the behavior of the classifier itself.The following features are supported:
- See Also:
UMLPackage.getBehavioredClassifier()
-
-
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 BehaviorcreateClassifierBehavior(String name, org.eclipse.emf.ecore.EClass eClass)Creates a newBehavior, with the specified 'Name', and sets the ' Classifier Behavior' reference.InterfaceRealizationcreateInterfaceRealization(String name, Interface contract)Creates a newInterfaceRealization, with the specified 'Name', and ' Contract', and appends it to the 'Interface Realization' containment reference list.BehaviorcreateOwnedBehavior(String name, org.eclipse.emf.ecore.EClass eClass)Creates a newBehavior, with the specified 'Name', and appends it to the ' Owned Behavior' containment reference list.TriggercreateOwnedTrigger(String name)Creates a newTrigger, with the specified 'Name', and appends it to the ' Owned Trigger' containment reference list.MDWEList<Interface>getAllImplementedInterfaces()Retrieves all the interfaces on which this behaviored classifier or any of its parents has an interface realization dependency.BehaviorgetClassifierBehavior()Returns the value of the 'Classifier Behavior' reference.MDWEList<Interface>getImplementedInterfaces()Retrieves the interfaces on which this behaviored classifier has an interface realization dependency.InterfaceRealizationgetInterfaceRealization(String name, Interface contract)Retrieves the firstInterfaceRealizationwith the specified 'Name', and ' Contract' from the 'Interface Realization' containment reference list.InterfaceRealizationgetInterfaceRealization(String name, Interface contract, boolean ignoreCase, boolean createOnDemand)Retrieves the firstInterfaceRealizationwith the specified 'Name', and ' Contract' from the 'Interface Realization' containment reference list.MDWEList<InterfaceRealization>getInterfaceRealizations()Returns the value of the 'Interface Realization' containment reference list.BehaviorgetOwnedBehavior(String name)Retrieves the firstBehaviorwith the specified 'Name' from the ' Owned Behavior' containment reference list.BehaviorgetOwnedBehavior(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)Retrieves the firstBehaviorwith the specified 'Name' from the ' Owned Behavior' containment reference list.MDWEList<Behavior>getOwnedBehaviors()Returns the value of the 'Owned Behavior' containment reference list.TriggergetOwnedTrigger(String name)Retrieves the firstTriggerwith the specified 'Name' from the ' Owned Trigger' containment reference list.TriggergetOwnedTrigger(String name, boolean ignoreCase, boolean createOnDemand)Retrieves the firstTriggerwith the specified 'Name' from the ' Owned Trigger' containment reference list.MDWEList<Trigger>getOwnedTriggers()Returns the value of the 'Owned Trigger' containment reference list.voidsetClassifierBehavior(Behavior value)Sets the value of the 'Classifier Behavior' reference.booleanvalidateClassBehavior(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)If a behavior is classifier behavior, it does not have a specification.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Classifier
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
-
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.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.ParameterableElement
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.RedefinableElement
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.TemplateableElement
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Type
conformsTo, createAssociation, getAssociations, getPackage, setPackage
-
-
-
-
Method Detail
-
getOwnedBehaviors
MDWEList<Behavior> getOwnedBehaviors()
Returns the value of the 'Owned Behavior' containment reference list. The list contents are of typeBehavior. References behavior specifications owned by a classifier.- Returns:
- the value of the 'Owned Behavior' containment reference list.
- See Also:
UMLPackage.getBehavioredClassifier_OwnedBehavior()
-
createOwnedBehavior
Behavior createOwnedBehavior(String name, org.eclipse.emf.ecore.EClass eClass)
Creates a newBehavior, with the specified 'Name', and appends it to the ' Owned Behavior' containment reference list.- Parameters:
name- The 'Name' for the newBehavior, ornull.eClass- The Ecore class of theBehaviorto create.- Returns:
- The new
Behavior. - See Also:
getOwnedBehaviors()
-
getOwnedBehavior
Behavior getOwnedBehavior(String name)
Retrieves the firstBehaviorwith the specified 'Name' from the ' Owned Behavior' containment reference list.- Parameters:
name- The 'Name' of theBehaviorto retrieve, ornull.- Returns:
- The first
Behaviorwith the specified 'Name', ornull. - See Also:
getOwnedBehaviors()
-
getOwnedBehavior
Behavior getOwnedBehavior(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Retrieves the firstBehaviorwith the specified 'Name' from the ' Owned Behavior' containment reference list.- Parameters:
name- The 'Name' of theBehaviorto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.eClass- The Ecore class of theBehaviorto retrieve, ornull.createOnDemand- Whether to create aBehavioron demand if not found.- Returns:
- The first
Behaviorwith the specified 'Name', ornull. - See Also:
getOwnedBehaviors()
-
getClassifierBehavior
Behavior getClassifierBehavior()
Returns the value of the 'Classifier Behavior' reference. A behavior specification that specifies the behavior of the classifier itself.- Returns:
- the value of the 'Classifier Behavior' reference.
- See Also:
setClassifierBehavior(Behavior),UMLPackage.getBehavioredClassifier_ClassifierBehavior()
-
setClassifierBehavior
void setClassifierBehavior(Behavior value)
Sets the value of the 'Classifier Behavior' reference.- Parameters:
value- the new value of the 'Classifier Behavior' reference.- See Also:
getClassifierBehavior()
-
createClassifierBehavior
Behavior createClassifierBehavior(String name, org.eclipse.emf.ecore.EClass eClass)
Creates a newBehavior, with the specified 'Name', and sets the ' Classifier Behavior' reference.- Parameters:
name- The 'Name' for the newBehavior, ornull.eClass- The Ecore class of theBehaviorto create.- Returns:
- The new
Behavior. - See Also:
getClassifierBehavior()
-
getInterfaceRealizations
MDWEList<InterfaceRealization> getInterfaceRealizations()
Returns the value of the 'Interface Realization' containment reference list. The list contents are of typeInterfaceRealization. It is bidirectional and its opposite is 'Implementing Classifier'. The set of InterfaceRealizations owned by the BehavioredClassifier. Interface realizations reference the Interfaces of which the BehavioredClassifier is an implementation.- Returns:
- the value of the 'Interface Realization' containment reference list.
- See Also:
UMLPackage.getBehavioredClassifier_InterfaceRealization(),InterfaceRealization.getImplementingClassifier()
-
createInterfaceRealization
InterfaceRealization createInterfaceRealization(String name, Interface contract)
Creates a newInterfaceRealization, with the specified 'Name', and ' Contract', and appends it to the 'Interface Realization' containment reference list.- Parameters:
name- The 'Name' for the newInterfaceRealization, ornull.contract- The 'Contract' for the newInterfaceRealization, ornull.- Returns:
- The new
InterfaceRealization. - See Also:
getInterfaceRealizations()
-
getInterfaceRealization
InterfaceRealization getInterfaceRealization(String name, Interface contract)
Retrieves the firstInterfaceRealizationwith the specified 'Name', and ' Contract' from the 'Interface Realization' containment reference list.- Parameters:
name- The 'Name' of theInterfaceRealizationto retrieve, ornull.contract- The 'Contract' of theInterfaceRealizationto retrieve, ornull.- Returns:
- The first
InterfaceRealizationwith the specified 'Name', and ' Contract', ornull. - See Also:
getInterfaceRealizations()
-
getInterfaceRealization
InterfaceRealization getInterfaceRealization(String name, Interface contract, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstInterfaceRealizationwith the specified 'Name', and ' Contract' from the 'Interface Realization' containment reference list.- Parameters:
name- The 'Name' of theInterfaceRealizationto retrieve, ornull.contract- The 'Contract' of theInterfaceRealizationto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.createOnDemand- Whether to create aInterfaceRealizationon demand if not found.- Returns:
- The first
InterfaceRealizationwith the specified 'Name', and ' Contract', ornull. - See Also:
getInterfaceRealizations()
-
getOwnedTriggers
MDWEList<Trigger> getOwnedTriggers()
Returns the value of the 'Owned Trigger' containment reference list. The list contents are of typeTrigger. References Trigger descriptions owned by a Classifier.- Returns:
- the value of the 'Owned Trigger' containment reference list.
- See Also:
UMLPackage.getBehavioredClassifier_OwnedTrigger()
-
createOwnedTrigger
Trigger createOwnedTrigger(String name)
Creates a newTrigger, with the specified 'Name', and appends it to the ' Owned Trigger' containment reference list.- Parameters:
name- The 'Name' for the newTrigger, ornull.- Returns:
- The new
Trigger. - See Also:
getOwnedTriggers()
-
getOwnedTrigger
Trigger getOwnedTrigger(String name)
Retrieves the firstTriggerwith the specified 'Name' from the ' Owned Trigger' containment reference list.- Parameters:
name- The 'Name' of theTriggerto retrieve, ornull.- Returns:
- The first
Triggerwith the specified 'Name', ornull. - See Also:
getOwnedTriggers()
-
getOwnedTrigger
Trigger getOwnedTrigger(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstTriggerwith the specified 'Name' from the ' Owned Trigger' containment reference list.- Parameters:
name- The 'Name' of theTriggerto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.createOnDemand- Whether to create aTriggeron demand if not found.- Returns:
- The first
Triggerwith the specified 'Name', ornull. - See Also:
getOwnedTriggers()
-
validateClassBehavior
boolean validateClassBehavior(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)If a behavior is classifier behavior, it does not have a specification. self.classifierBehavior.notEmpty() implies self.specification.isEmpty()
-
getImplementedInterfaces
MDWEList<Interface> getImplementedInterfaces()
Retrieves the interfaces on which this behaviored classifier has an interface realization dependency.
-
-