Package com.sodius.mdw.metamodel.uml21
Interface StructuredClassifier
-
- 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
,AssociationClass
,Behavior
,Class
,Collaboration
,Component
,Device
,EncapsulatedClassifier
,ExecutionEnvironment
,FunctionBehavior
,Interaction
,Node
,OpaqueBehavior
,ProtocolStateMachine
,StateMachine
,Stereotype
public interface StructuredClassifier extends Classifier
A representation of the model object 'Structured Classifier'. A structured classifier is an abstract metaclass that represents any classifier whose behavior can be fully or partly described by the collaboration of owned or referenced instances.The following features are supported:
- See Also:
UMLPackage.getStructuredClassifier()
-
-
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 Property
createOwnedAttribute(String name, Type type)
Creates a newProperty
, with the specified 'Name', and 'Type', and appends it to the 'Owned Attribute' containment reference list.Property
createOwnedAttribute(String name, Type type, int lower, int upper)
Creates a property with the specified name, type, lower bound, and upper bound as an owned attribute of this structured classifier.Property
createOwnedAttribute(String name, Type type, org.eclipse.emf.ecore.EClass eClass)
Creates a newProperty
, with the specified 'Name', and 'Type', and appends it to the 'Owned Attribute' containment reference list.Connector
createOwnedConnector(String name)
Creates a newConnector
, with the specified 'Name', and appends it to the ' Owned Connector' containment reference list.Property
getOwnedAttribute(String name, Type type)
Retrieves the firstProperty
with the specified 'Name', and 'Type' from the 'Owned Attribute' containment reference list.Property
getOwnedAttribute(String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Retrieves the firstProperty
with the specified 'Name', and 'Type' from the 'Owned Attribute' containment reference list.MDWEList<Property>
getOwnedAttributes()
Returns the value of the 'Owned Attribute' containment reference list.Connector
getOwnedConnector(String name)
Retrieves the firstConnector
with the specified 'Name' from the ' Owned Connector' containment reference list.Connector
getOwnedConnector(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstConnector
with the specified 'Name' from the ' Owned Connector' containment reference list.MDWEList<Connector>
getOwnedConnectors()
Returns the value of the 'Owned Connector' containment reference list.Property
getPart(String name, Type type)
Retrieves the firstProperty
with the specified 'Name', and 'Type' from the 'Part' reference list.Property
getPart(String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstProperty
with the specified 'Name', and 'Type' from the 'Part' reference list.MDWEList<Property>
getParts()
Returns the value of the 'Part' reference list.ConnectableElement
getRole(String name, Type type)
Retrieves the firstConnectableElement
with the specified 'Name', and ' Type' from the 'Role' reference list.ConnectableElement
getRole(String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstConnectableElement
with the specified 'Name', and ' Type' from the 'Role' reference list.MDWEList<ConnectableElement>
getRoles()
Returns the value of the 'Role' reference list.boolean
validateMultiplicities(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The multiplicities on connected elements must be consistent.-
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
-
getOwnedAttributes
MDWEList<Property> getOwnedAttributes()
Returns the value of the 'Owned Attribute' containment reference list. The list contents are of typeProperty
. References the properties owned by the classifier.- Returns:
- the value of the 'Owned Attribute' containment reference list.
- See Also:
UMLPackage.getStructuredClassifier_OwnedAttribute()
-
createOwnedAttribute
Property createOwnedAttribute(String name, Type type, org.eclipse.emf.ecore.EClass eClass)
Creates a newProperty
, with the specified 'Name', and 'Type', and appends it to the 'Owned Attribute' containment reference list.- Parameters:
name
- The 'Name' for the newProperty
, ornull
.type
- The 'Type' for the newProperty
, ornull
.eClass
- The Ecore class of theProperty
to create.- Returns:
- The new
Property
. - See Also:
getOwnedAttributes()
-
createOwnedAttribute
Property createOwnedAttribute(String name, Type type)
Creates a newProperty
, with the specified 'Name', and 'Type', and appends it to the 'Owned Attribute' containment reference list.- Parameters:
name
- The 'Name' for the newProperty
, ornull
.type
- The 'Type' for the newProperty
, ornull
.- Returns:
- The new
Property
. - See Also:
getOwnedAttributes()
-
getOwnedAttribute
Property getOwnedAttribute(String name, Type type)
Retrieves the firstProperty
with the specified 'Name', and 'Type' from the 'Owned Attribute' containment reference list.- Parameters:
name
- The 'Name' of theProperty
to retrieve, ornull
.type
- The 'Type' of theProperty
to retrieve, ornull
.- Returns:
- The first
Property
with the specified 'Name', and 'Type', ornull
. - See Also:
getOwnedAttributes()
-
getOwnedAttribute
Property getOwnedAttribute(String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Retrieves the firstProperty
with the specified 'Name', and 'Type' from the 'Owned Attribute' containment reference list.- Parameters:
name
- The 'Name' of theProperty
to retrieve, ornull
.type
- The 'Type' of theProperty
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.eClass
- The Ecore class of theProperty
to retrieve, ornull
.createOnDemand
- Whether to create aProperty
on demand if not found.- Returns:
- The first
Property
with the specified 'Name', and 'Type', ornull
. - See Also:
getOwnedAttributes()
-
getParts
MDWEList<Property> getParts()
Returns the value of the 'Part' reference list. The list contents are of typeProperty
. References the properties specifying instances that the classifier owns by composition. This association is derived, selecting those owned properties where isComposite is true.- Returns:
- the value of the 'Part' reference list.
- See Also:
UMLPackage.getStructuredClassifier_Part()
-
getPart
Property getPart(String name, Type type)
Retrieves the firstProperty
with the specified 'Name', and 'Type' from the 'Part' reference list.- Parameters:
name
- The 'Name' of theProperty
to retrieve, ornull
.type
- The 'Type' of theProperty
to retrieve, ornull
.- Returns:
- The first
Property
with the specified 'Name', and 'Type', ornull
. - See Also:
getParts()
-
getPart
Property getPart(String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstProperty
with the specified 'Name', and 'Type' from the 'Part' reference list.- Parameters:
name
- The 'Name' of theProperty
to retrieve, ornull
.type
- The 'Type' of theProperty
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.eClass
- The Ecore class of theProperty
to retrieve, ornull
.- Returns:
- The first
Property
with the specified 'Name', and 'Type', ornull
. - See Also:
getParts()
-
getRoles
MDWEList<ConnectableElement> getRoles()
Returns the value of the 'Role' reference list. The list contents are of typeConnectableElement
. References the roles that instances may play in this classifier.- Returns:
- the value of the 'Role' reference list.
- See Also:
UMLPackage.getStructuredClassifier_Role()
-
getRole
ConnectableElement getRole(String name, Type type)
Retrieves the firstConnectableElement
with the specified 'Name', and ' Type' from the 'Role' reference list.- Parameters:
name
- The 'Name' of theConnectableElement
to retrieve, ornull
.type
- The 'Type' of theConnectableElement
to retrieve, ornull
.- Returns:
- The first
ConnectableElement
with the specified 'Name', and ' Type', ornull
. - See Also:
getRoles()
-
getRole
ConnectableElement getRole(String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstConnectableElement
with the specified 'Name', and ' Type' from the 'Role' reference list.- Parameters:
name
- The 'Name' of theConnectableElement
to retrieve, ornull
.type
- The 'Type' of theConnectableElement
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.eClass
- The Ecore class of theConnectableElement
to retrieve, ornull
.- Returns:
- The first
ConnectableElement
with the specified 'Name', and ' Type', ornull
. - See Also:
getRoles()
-
getOwnedConnectors
MDWEList<Connector> getOwnedConnectors()
Returns the value of the 'Owned Connector' containment reference list. The list contents are of typeConnector
. References the connectors owned by the classifier.- Returns:
- the value of the 'Owned Connector' containment reference list.
- See Also:
UMLPackage.getStructuredClassifier_OwnedConnector()
-
createOwnedConnector
Connector createOwnedConnector(String name)
Creates a newConnector
, with the specified 'Name', and appends it to the ' Owned Connector' containment reference list.- Parameters:
name
- The 'Name' for the newConnector
, ornull
.- Returns:
- The new
Connector
. - See Also:
getOwnedConnectors()
-
getOwnedConnector
Connector getOwnedConnector(String name)
Retrieves the firstConnector
with the specified 'Name' from the ' Owned Connector' containment reference list.- Parameters:
name
- The 'Name' of theConnector
to retrieve, ornull
.- Returns:
- The first
Connector
with the specified 'Name', ornull
. - See Also:
getOwnedConnectors()
-
getOwnedConnector
Connector getOwnedConnector(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstConnector
with the specified 'Name' from the ' Owned Connector' containment reference list.- Parameters:
name
- The 'Name' of theConnector
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.createOnDemand
- Whether to create aConnector
on demand if not found.- Returns:
- The first
Connector
with the specified 'Name', ornull
. - See Also:
getOwnedConnectors()
-
validateMultiplicities
boolean validateMultiplicities(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The multiplicities on connected elements must be consistent. true
-
-