public interface Component extends Class, Namespace
The following features are supported:
UMLPackage.getComponent()
SEPARATOR
Modifier and Type | Method and 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,
EClass eClass)
Creates a new
PackageableElement , with the specified 'Name', and appends it to the '
Packaged Element' containment reference list |
ComponentRealization |
createRealization(String name)
Creates a new
ComponentRealization , with the specified 'Name', and appends it to the '
Realization' containment reference list |
PackageableElement |
getPackagedElement(String name)
Retrieves the first
PackageableElement with the specified 'Name' from the '
Packaged Element' containment reference list |
PackageableElement |
getPackagedElement(String name,
boolean ignoreCase,
EClass eClass,
boolean createOnDemand)
Retrieves the first
PackageableElement 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 first
Interface with the specified 'Name' from the '
Provided' reference list |
Interface |
getProvided(String name,
boolean ignoreCase)
Retrieves the first
Interface 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 first
ComponentRealization with the specified 'Name' from the '
Realization' containment reference list |
ComponentRealization |
getRealization(String name,
boolean ignoreCase,
boolean createOnDemand)
Retrieves the first
ComponentRealization 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 first
Interface with the specified 'Name' from the '
Required' reference list |
Interface |
getRequired(String name,
boolean ignoreCase)
Retrieves the first
Interface 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)
|
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 isIndirectlyInstantiated()
"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. <setIsIndirectlyInstantiated(boolean)
,
UMLPackage.getComponent_IsIndirectlyInstantiated()
void setIsIndirectlyInstantiated(boolean value)
Is Indirectly Instantiated
'
attribute.
value
- the new value of the 'Is Indirectly Instantiated' attribute.isIndirectlyInstantiated()
MDWEList<Interface> getRequireds()
Interface
.
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.
UMLPackage.getComponent_Required()
Interface getRequired(String name)
Interface
with the specified 'Name' from the '
Required' reference list.
name
- The 'Name' of the Interface
to retrieve, or null
.Interface
with the specified 'Name', or null
.getRequireds()
Interface getRequired(String name, boolean ignoreCase)
Interface
with the specified 'Name' from the '
Required' reference list.
name
- The 'Name' of the Interface
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.Interface
with the specified 'Name', or null
.getRequireds()
MDWEList<Interface> getProvideds()
Interface
.
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.
UMLPackage.getComponent_Provided()
Interface getProvided(String name)
Interface
with the specified 'Name' from the '
Provided' reference list.
name
- The 'Name' of the Interface
to retrieve, or null
.Interface
with the specified 'Name', or null
.getProvideds()
Interface getProvided(String name, boolean ignoreCase)
Interface
with the specified 'Name' from the '
Provided' reference list.
name
- The 'Name' of the Interface
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.Interface
with the specified 'Name', or null
.getProvideds()
MDWEList<PackageableElement> getPackagedElements()
PackageableElement
.
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.
UMLPackage.getComponent_PackagedElement()
PackageableElement createPackagedElement(String name, EClass eClass)
PackageableElement
, with the specified 'Name', and appends it to the '
Packaged Element' containment reference list.
name
- The 'Name' for the new PackageableElement
, or null
.eClass
- The Ecore class of the PackageableElement
to create.PackageableElement
.getPackagedElements()
PackageableElement getPackagedElement(String name)
PackageableElement
with the specified 'Name' from the '
Packaged Element' containment reference list.
name
- The 'Name' of the PackageableElement
to retrieve, or null
.PackageableElement
with the specified 'Name', or null
.getPackagedElements()
PackageableElement getPackagedElement(String name, boolean ignoreCase, EClass eClass, boolean createOnDemand)
PackageableElement
with the specified 'Name' from the '
Packaged Element' containment reference list.
name
- The 'Name' of the PackageableElement
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the PackageableElement
to retrieve, or null
.createOnDemand
- Whether to create a PackageableElement
on demand if not found.PackageableElement
with the specified 'Name', or null
.getPackagedElements()
MDWEList<ComponentRealization> getRealizations()
ComponentRealization
.
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.
UMLPackage.getComponent_Realization()
,
ComponentRealization.getAbstraction()
ComponentRealization createRealization(String name)
ComponentRealization
, with the specified 'Name', and appends it to the '
Realization' containment reference list.
name
- The 'Name' for the new ComponentRealization
, or null
.ComponentRealization
.getRealizations()
ComponentRealization getRealization(String name)
ComponentRealization
with the specified 'Name' from the '
Realization' containment reference list.
name
- The 'Name' of the ComponentRealization
to retrieve, or null
.ComponentRealization
with the specified 'Name', or null
.getRealizations()
ComponentRealization getRealization(String name, boolean ignoreCase, boolean createOnDemand)
ComponentRealization
with the specified 'Name' from the '
Realization' containment reference list.
name
- The 'Name' of the ComponentRealization
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.createOnDemand
- Whether to create a ComponentRealization
on demand if not found.ComponentRealization
with the specified 'Name', or null
.getRealizations()
Class createOwnedClass(String name, boolean isAbstract)
Enumeration createOwnedEnumeration(String name)
PrimitiveType createOwnedPrimitiveType(String name)
Interface createOwnedInterface(String name)
MDWEList<Interface> realizedInterfaces(Classifier classifier)
MDWEList<Interface> usedInterfaces(Classifier classifier)