public interface Component extends Class
From package UML::StructuredClassifiers.
The following features are supported:
UMLPackage.getComponent()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
Class |
createOwnedClass(java.lang.String name,
boolean isAbstract)
Creates a(n) (abstract) class with the specified name as a packaged element of this component.
|
Enumeration |
createOwnedEnumeration(java.lang.String name)
Creates a enumeration with the specified name as a packaged element of this component.
|
Interface |
createOwnedInterface(java.lang.String name)
Creates an interface with the specified name as a packaged element of this component.
|
PrimitiveType |
createOwnedPrimitiveType(java.lang.String name)
Creates a primitive type with the specified name as a packaged element of this component.
|
PackageableElement |
createPackagedElement(java.lang.String name,
org.eclipse.emf.ecore.EClass eClass)
Creates a new
PackageableElement , with the specified 'Name', and appends it to the 'Packaged Element' containment reference list |
ComponentRealization |
createRealization(java.lang.String name)
Creates a new
ComponentRealization , with the specified 'Name', and appends it to the 'Realization' containment reference list |
PackageableElement |
getPackagedElement(java.lang.String name)
Retrieves the first
PackageableElement with the specified 'Name' from the 'Packaged Element' containment reference list |
PackageableElement |
getPackagedElement(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass,
boolean createOnDemand)
Retrieves the first
PackageableElement with the specified 'Name' from the 'Packaged Element' containment reference list |
org.eclipse.emf.common.util.EList<PackageableElement> |
getPackagedElements()
Returns the value of the 'Packaged Element' containment reference list.
|
Interface |
getProvided(java.lang.String name)
Retrieves the first
Interface with the specified 'Name' from the 'Provided' reference list |
Interface |
getProvided(java.lang.String name,
boolean ignoreCase)
Retrieves the first
Interface with the specified 'Name' from the 'Provided' reference list |
org.eclipse.emf.common.util.EList<Interface> |
getProvideds()
Returns the value of the 'Provided' reference list.
|
ComponentRealization |
getRealization(java.lang.String name)
Retrieves the first
ComponentRealization with the specified 'Name' from the 'Realization' containment reference list |
ComponentRealization |
getRealization(java.lang.String name,
boolean ignoreCase,
boolean createOnDemand)
Retrieves the first
ComponentRealization with the specified 'Name' from the 'Realization' containment reference list |
org.eclipse.emf.common.util.EList<ComponentRealization> |
getRealizations()
Returns the value of the 'Realization' containment reference list.
|
Interface |
getRequired(java.lang.String name)
Retrieves the first
Interface with the specified 'Name' from the 'Required' reference list |
Interface |
getRequired(java.lang.String name,
boolean ignoreCase)
Retrieves the first
Interface with the specified 'Name' from the 'Required' reference list |
org.eclipse.emf.common.util.EList<Interface> |
getRequireds()
Returns the value of the 'Required' reference list.
|
boolean |
isIndirectlyInstantiated()
Returns the value of the 'Is Indirectly Instantiated' attribute.
|
void |
setIsIndirectlyInstantiated(boolean value)
Sets the value of the '
Is Indirectly Instantiated ' attribute |
boolean |
validateNoNestedClassifiers(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
A Component cannot nest Classifiers.
|
boolean |
validateNoPackagedElements(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
A Component nested in a Class cannot have any packaged elements.
|
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, getOwnedPort, getOwnedPorts
allRoles, createOwnedAttribute, createOwnedAttribute, createOwnedAttribute, createOwnedConnector, getOwnedAttribute, getOwnedAttribute, getOwnedAttributes, getOwnedConnector, getOwnedConnector, getOwnedConnectors, getPart, getPart, getParts, getRole, getRole, getRoles
allAttributes, allFeatures, allParents, allRealizedInterfaces, allSlottableFeatures, allUsedInterfaces, createCollaborationUse, createGeneralization, createOwnedUseCase, createRepresentation, createSubstitution, directlyRealizedInterfaces, directlyUsedInterfaces, 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, isSubstitutableFor, maySpecializeType, parents, setIsAbstract, setIsFinalSpecialization, setRepresentation, validateMapsToGeneralizationSet, validateNoCyclesInGeneralization, validateNonFinalParents, validateSpecializeType
createElementImport, createElementImport, createOwnedRule, createOwnedRule, createPackageImport, createPackageImport, excludeCollisions, getElementImport, getElementImport, getElementImports, getImportedElements, getImportedMember, getImportedMember, getImportedMembers, getImportedPackages, getMember, getMember, getMembers, getNamesOfMember, getOwnedMember, getOwnedMember, getOwnedMembers, getOwnedRule, getOwnedRule, getOwnedRules, getPackageImport, getPackageImport, getPackageImports, importMembers, membersAreDistinguishable, validateCannotImportOwnedMembers, validateCannotImportSelf, validateMembersDistinguishable
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateNonLeafRedefinition, validateRedefinitionConsistent, validateRedefinitionContextValid
conformsTo, createAssociation, getAssociations, getPackage, setPackage
validateNamespaceNeedsVisibility
allNamespaces, allOwningPackages, createDependency, createNameExpression, createUsage, 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
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, getAllImplementedInterfaces, getClassifierBehavior, getImplementedInterfaces, getInterfaceRealization, getInterfaceRealization, getInterfaceRealizations, getOwnedBehavior, getOwnedBehavior, getOwnedBehaviors, setClassifierBehavior, validateClassBehavior
boolean isIndirectlyInstantiated()
"true"
.
If true, the Component is defined at design-time, but at run-time (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.
From package UML::StructuredClassifiers.
setIsIndirectlyInstantiated(boolean)
,
UMLPackage.getComponent_IsIndirectlyInstantiated()
void setIsIndirectlyInstantiated(boolean value)
Is Indirectly Instantiated
' attribute.
value
- the new value of the 'Is Indirectly Instantiated' attribute.isIndirectlyInstantiated()
org.eclipse.emf.common.util.EList<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.
From package UML::StructuredClassifiers.
UMLPackage.getComponent_Required()
Interface getRequired(java.lang.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(java.lang.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()
boolean validateNoNestedClassifiers(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateNoPackagedElements(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
org.eclipse.emf.common.util.EList<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.
From package UML::StructuredClassifiers.
UMLPackage.getComponent_Provided()
Interface getProvided(java.lang.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(java.lang.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()
org.eclipse.emf.common.util.EList<PackageableElement> getPackagedElements()
PackageableElement
.
This feature subsets the following features:
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, UseCases, Dependencies (e.g., mappings), and Artifacts.From package UML::StructuredClassifiers.
UMLPackage.getComponent_PackagedElement()
PackageableElement createPackagedElement(java.lang.String name, org.eclipse.emf.ecore.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(java.lang.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(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.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()
org.eclipse.emf.common.util.EList<ComponentRealization> getRealizations()
ComponentRealization
.
It is bidirectional and its opposite is 'Abstraction
'.
This feature subsets the following features:
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.From package UML::StructuredClassifiers.
UMLPackage.getComponent_Realization()
,
ComponentRealization.getAbstraction()
ComponentRealization createRealization(java.lang.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(java.lang.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(java.lang.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(java.lang.String name, boolean isAbstract)
name
- The name for the new class, or null.isAbstract
- Whether the new class should be abstract.
Enumeration createOwnedEnumeration(java.lang.String name)
name
- The name for the new enumeration, or null.
PrimitiveType createOwnedPrimitiveType(java.lang.String name)
name
- The name for the new primitive type, or null.
Interface createOwnedInterface(java.lang.String name)
name
- The name for the new interface, or null.