Package com.sodius.mdw.metamodel.uml21
Interface Component
-
- All Superinterfaces:
BehavioredClassifier
,Class
,Classifier
,Comparable<Object>
,Element
,org.eclipse.emf.ecore.EModelElement
,EncapsulatedClassifier
,org.eclipse.emf.ecore.EObject
,MDWEObject
,MDWObject
,NamedElement
,Namespace
,org.eclipse.emf.common.notify.Notifier
,PackageableElement
,ParameterableElement
,RedefinableElement
,StructuredClassifier
,TemplateableElement
,Type
public interface Component extends Class, Namespace
A representation of the model object 'Component'. A component represents a modular part of a system that encapsulates its contents and whose manifestation is replaceable within its environment. In the namespace of a component, all model elements that are involved in or related to its definition are either owned or imported explicitly. This may include, for example, use cases and dependencies (e.g. mappings), packages, components, and artifacts.The following features are supported:
- See Also:
UMLPackage.getComponent()
-
-
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 Class
createOwnedClass(String name, boolean isAbstract)
Creates a(n) (abstract) class with the specified name as a packaged element of this component.Enumeration
createOwnedEnumeration(String name)
Creates a enumeration with the specified name as a packaged element of this component.Interface
createOwnedInterface(String name)
Creates an interface with the specified name as a packaged element of this component.PrimitiveType
createOwnedPrimitiveType(String name)
Creates a primitive type with the specified name as a packaged element of this component.PackageableElement
createPackagedElement(String name, org.eclipse.emf.ecore.EClass eClass)
Creates a newPackageableElement
, with the specified 'Name', and appends it to the ' Packaged Element' containment reference list.ComponentRealization
createRealization(String name)
Creates a newComponentRealization
, with the specified 'Name', and appends it to the ' Realization' containment reference list.PackageableElement
getPackagedElement(String name)
Retrieves the firstPackageableElement
with the specified 'Name' from the ' Packaged Element' containment reference list.PackageableElement
getPackagedElement(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Retrieves the firstPackageableElement
with the specified 'Name' from the ' Packaged Element' containment reference list.MDWEList<PackageableElement>
getPackagedElements()
Returns the value of the 'Packaged Element' containment reference list.Interface
getProvided(String name)
Retrieves the firstInterface
with the specified 'Name' from the ' Provided' reference list.Interface
getProvided(String name, boolean ignoreCase)
Retrieves the firstInterface
with the specified 'Name' from the ' Provided' reference list.MDWEList<Interface>
getProvideds()
Returns the value of the 'Provided' reference list.ComponentRealization
getRealization(String name)
Retrieves the firstComponentRealization
with the specified 'Name' from the ' Realization' containment reference list.ComponentRealization
getRealization(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstComponentRealization
with the specified 'Name' from the ' Realization' containment reference list.MDWEList<ComponentRealization>
getRealizations()
Returns the value of the 'Realization' containment reference list.Interface
getRequired(String name)
Retrieves the firstInterface
with the specified 'Name' from the ' Required' reference list.Interface
getRequired(String name, boolean ignoreCase)
Retrieves the firstInterface
with the specified 'Name' from the ' Required' reference list.MDWEList<Interface>
getRequireds()
Returns the value of the 'Required' reference list.boolean
isIndirectlyInstantiated()
Returns the value of the 'Is Indirectly Instantiated' attribute.MDWEList<Interface>
realizedInterfaces(Classifier classifier)
Utility returning the set of realized interfaces of a component: result = (classifier.clientDependency-> select(dependency|dependency.oclIsKindOf(Realization) and dependency.supplier.oclIsKindOf(Interface)))-> collect(dependency|dependency.client)void
setIsIndirectlyInstantiated(boolean value)
Sets the value of the 'Is Indirectly Instantiated
' attribute.MDWEList<Interface>
usedInterfaces(Classifier classifier)
Utility returning the set of used interfaces of a component: result = (classifier.supplierDependency-> select(dependency|dependency.oclIsKindOf(Usage) and dependency.supplier.oclIsKindOf(interface)))-> collect(dependency|dependency.supplier)-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.BehavioredClassifier
createClassifierBehavior, createInterfaceRealization, createOwnedBehavior, createOwnedTrigger, getAllImplementedInterfaces, getClassifierBehavior, getImplementedInterfaces, getInterfaceRealization, getInterfaceRealization, getInterfaceRealizations, getOwnedBehavior, getOwnedBehavior, getOwnedBehaviors, getOwnedTrigger, getOwnedTrigger, getOwnedTriggers, setClassifierBehavior, validateClassBehavior
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Class
createNestedClassifier, createOwnedOperation, createOwnedOperation, createOwnedReception, getExtension, getExtension, getExtensions, getNestedClassifier, getNestedClassifier, getNestedClassifiers, getOwnedOperation, getOwnedOperation, getOwnedOperations, getOwnedReception, getOwnedReception, getOwnedReceptions, getSuperClass, getSuperClass, getSuperClasses, isActive, isMetaclass, setIsActive, validatePassiveClass
-
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 com.sodius.mdw.metamodel.uml21.EncapsulatedClassifier
createOwnedPort, getOwnedPort, getOwnedPort, getOwnedPorts
-
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.StructuredClassifier
createOwnedAttribute, createOwnedAttribute, createOwnedAttribute, createOwnedConnector, getOwnedAttribute, getOwnedAttribute, getOwnedAttributes, getOwnedConnector, getOwnedConnector, getOwnedConnectors, getPart, getPart, getParts, getRole, getRole, getRoles, validateMultiplicities
-
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
-
isIndirectlyInstantiated
boolean isIndirectlyInstantiated()
Returns the value of the 'Is Indirectly Instantiated' attribute. The default value is"true"
. The kind of instantiation that applies to a Component. If false, the component is instantiated as an addressable object. If true, the Component is defined at design-time, but at runtime (or execution-time) an object specified by the Component does not exist, that is, the component is instantiated indirectly, through the instantiation of its realizing classifiers or parts. Several standard stereotypes use this meta attribute, e.g. <>, < >, < >. - Returns:
- the value of the 'Is Indirectly Instantiated' attribute.
- See Also:
setIsIndirectlyInstantiated(boolean)
,UMLPackage.getComponent_IsIndirectlyInstantiated()
-
setIsIndirectlyInstantiated
void setIsIndirectlyInstantiated(boolean value)
Sets the value of the 'Is Indirectly Instantiated
' attribute.- Parameters:
value
- the new value of the 'Is Indirectly Instantiated' attribute.- See Also:
isIndirectlyInstantiated()
-
getRequireds
MDWEList<Interface> getRequireds()
Returns the value of the 'Required' reference list. The list contents are of typeInterface
. The interfaces that the component requires from other components in its environment in order to be able to offer its full set of provided functionality. These interfaces may be Used by the Component or any of its realizingClassifiers, or they may be the Interfaces that are required by its public Ports.- Returns:
- the value of the 'Required' reference list.
- See Also:
UMLPackage.getComponent_Required()
-
getRequired
Interface getRequired(String name)
Retrieves the firstInterface
with the specified 'Name' from the ' Required' reference list.- Parameters:
name
- The 'Name' of theInterface
to retrieve, ornull
.- Returns:
- The first
Interface
with the specified 'Name', ornull
. - See Also:
getRequireds()
-
getRequired
Interface getRequired(String name, boolean ignoreCase)
Retrieves the firstInterface
with the specified 'Name' from the ' Required' reference list.- Parameters:
name
- The 'Name' of theInterface
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.- Returns:
- The first
Interface
with the specified 'Name', ornull
. - See Also:
getRequireds()
-
getProvideds
MDWEList<Interface> getProvideds()
Returns the value of the 'Provided' reference list. The list contents are of typeInterface
. The interfaces that the component exposes to its environment. These interfaces may be Realized by the Component or any of its realizingClassifiers, or they may be the Interfaces that are provided by its public Ports.- Returns:
- the value of the 'Provided' reference list.
- See Also:
UMLPackage.getComponent_Provided()
-
getProvided
Interface getProvided(String name)
Retrieves the firstInterface
with the specified 'Name' from the ' Provided' reference list.- Parameters:
name
- The 'Name' of theInterface
to retrieve, ornull
.- Returns:
- The first
Interface
with the specified 'Name', ornull
. - See Also:
getProvideds()
-
getProvided
Interface getProvided(String name, boolean ignoreCase)
Retrieves the firstInterface
with the specified 'Name' from the ' Provided' reference list.- Parameters:
name
- The 'Name' of theInterface
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.- Returns:
- The first
Interface
with the specified 'Name', ornull
. - See Also:
getProvideds()
-
getPackagedElements
MDWEList<PackageableElement> getPackagedElements()
Returns the value of the 'Packaged Element' containment reference list. The list contents are of typePackageableElement
. The set of PackageableElements that a Component owns. In the namespace of a component, all model elements that are involved in or related to its definition may be owned or imported explicitly. These may include e.g. Classes, Interfaces, Components, Packages, Use cases, Dependencies (e.g. mappings), and Artifacts.- Returns:
- the value of the 'Packaged Element' containment reference list.
- See Also:
UMLPackage.getComponent_PackagedElement()
-
createPackagedElement
PackageableElement createPackagedElement(String name, org.eclipse.emf.ecore.EClass eClass)
Creates a newPackageableElement
, with the specified 'Name', and appends it to the ' Packaged Element' containment reference list.- Parameters:
name
- The 'Name' for the newPackageableElement
, ornull
.eClass
- The Ecore class of thePackageableElement
to create.- Returns:
- The new
PackageableElement
. - See Also:
getPackagedElements()
-
getPackagedElement
PackageableElement getPackagedElement(String name)
Retrieves the firstPackageableElement
with the specified 'Name' from the ' Packaged Element' containment reference list.- Parameters:
name
- The 'Name' of thePackageableElement
to retrieve, ornull
.- Returns:
- The first
PackageableElement
with the specified 'Name', ornull
. - See Also:
getPackagedElements()
-
getPackagedElement
PackageableElement getPackagedElement(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Retrieves the firstPackageableElement
with the specified 'Name' from the ' Packaged Element' containment reference list.- Parameters:
name
- The 'Name' of thePackageableElement
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.eClass
- The Ecore class of thePackageableElement
to retrieve, ornull
.createOnDemand
- Whether to create aPackageableElement
on demand if not found.- Returns:
- The first
PackageableElement
with the specified 'Name', ornull
. - See Also:
getPackagedElements()
-
getRealizations
MDWEList<ComponentRealization> getRealizations()
Returns the value of the 'Realization' containment reference list. The list contents are of typeComponentRealization
. It is bidirectional and its opposite is 'Abstraction
'. The set of Realizations owned by the Component. Realizations reference the Classifiers of which the Component is an abstraction; i.e., that realize its behavior.- Returns:
- the value of the 'Realization' containment reference list.
- See Also:
UMLPackage.getComponent_Realization()
,ComponentRealization.getAbstraction()
-
createRealization
ComponentRealization createRealization(String name)
Creates a newComponentRealization
, with the specified 'Name', and appends it to the ' Realization' containment reference list.- Parameters:
name
- The 'Name' for the newComponentRealization
, ornull
.- Returns:
- The new
ComponentRealization
. - See Also:
getRealizations()
-
getRealization
ComponentRealization getRealization(String name)
Retrieves the firstComponentRealization
with the specified 'Name' from the ' Realization' containment reference list.- Parameters:
name
- The 'Name' of theComponentRealization
to retrieve, ornull
.- Returns:
- The first
ComponentRealization
with the specified 'Name', ornull
. - See Also:
getRealizations()
-
getRealization
ComponentRealization getRealization(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstComponentRealization
with the specified 'Name' from the ' Realization' containment reference list.- Parameters:
name
- The 'Name' of theComponentRealization
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.createOnDemand
- Whether to create aComponentRealization
on demand if not found.- Returns:
- The first
ComponentRealization
with the specified 'Name', ornull
. - See Also:
getRealizations()
-
createOwnedClass
Class createOwnedClass(String name, boolean isAbstract)
Creates a(n) (abstract) class with the specified name as a packaged element of this component.
-
createOwnedEnumeration
Enumeration createOwnedEnumeration(String name)
Creates a enumeration with the specified name as a packaged element of this component.
-
createOwnedPrimitiveType
PrimitiveType createOwnedPrimitiveType(String name)
Creates a primitive type with the specified name as a packaged element of this component.
-
createOwnedInterface
Interface createOwnedInterface(String name)
Creates an interface with the specified name as a packaged element of this component.
-
realizedInterfaces
MDWEList<Interface> realizedInterfaces(Classifier classifier)
Utility returning the set of realized interfaces of a component: result = (classifier.clientDependency-> select(dependency|dependency.oclIsKindOf(Realization) and dependency.supplier.oclIsKindOf(Interface)))-> collect(dependency|dependency.client)
-
usedInterfaces
MDWEList<Interface> usedInterfaces(Classifier classifier)
Utility returning the set of used interfaces of a component: result = (classifier.supplierDependency-> select(dependency|dependency.oclIsKindOf(Usage) and dependency.supplier.oclIsKindOf(interface)))-> collect(dependency|dependency.supplier)
-
-