public interface Association extends Classifier, Relationship
The following features are supported:
UMLPackage.getAssociation()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
Property |
createNavigableOwnedEnd(String name,
Type type)
Creates a new
Property , with the specified 'Name', and 'Type', and
appends it to the 'Navigable Owned End' reference list |
Property |
createNavigableOwnedEnd(String name,
Type type,
EClass eClass)
Creates a new
Property , with the specified 'Name', and 'Type', and
appends it to the 'Navigable Owned End' reference list |
Property |
createOwnedEnd(String name,
Type type)
Creates a new
Property , with the specified 'Name', and 'Type', and
appends it to the 'Owned End' containment reference list |
Property |
createOwnedEnd(String name,
Type type,
EClass eClass)
Creates a new
Property , with the specified 'Name', and 'Type', and
appends it to the 'Owned End' containment reference list |
Type |
getEndType(String name)
Retrieves the first
Type with the specified 'Name' from the 'End Type'
reference list |
Type |
getEndType(String name,
boolean ignoreCase,
EClass eClass)
Retrieves the first
Type with the specified 'Name' from the 'End Type'
reference list |
MDWEList<Type> |
getEndTypes()
Returns the value of the 'End Type' reference list.
|
Property |
getMemberEnd(String name,
Type type)
Retrieves the first
Property with the specified 'Name', and 'Type' from
the 'Member End' reference list |
Property |
getMemberEnd(String name,
Type type,
boolean ignoreCase,
EClass eClass)
Retrieves the first
Property with the specified 'Name', and 'Type' from
the 'Member End' reference list |
MDWEList<Property> |
getMemberEnds()
Returns the value of the 'Member End' reference list.
|
Property |
getNavigableOwnedEnd(String name,
Type type)
Retrieves the first
Property with the specified 'Name', and 'Type' from
the 'Navigable Owned End' reference list |
Property |
getNavigableOwnedEnd(String name,
Type type,
boolean ignoreCase,
EClass eClass,
boolean createOnDemand)
Retrieves the first
Property with the specified 'Name', and 'Type' from
the 'Navigable Owned End' reference list |
MDWEList<Property> |
getNavigableOwnedEnds()
Returns the value of the 'Navigable Owned End' reference list.
|
Property |
getOwnedEnd(String name,
Type type)
Retrieves the first
Property with the specified 'Name', and 'Type' from
the 'Owned End' containment reference list |
Property |
getOwnedEnd(String name,
Type type,
boolean ignoreCase,
EClass eClass,
boolean createOnDemand)
Retrieves the first
Property with the specified 'Name', and 'Type' from
the 'Owned End' containment reference list |
MDWEList<Property> |
getOwnedEnds()
Returns the value of the 'Owned End' containment reference list.
|
boolean |
isBinary()
Determines whether this association is a binary association, i.e. whether it has exactly two member ends
|
boolean |
isDerived()
Returns the value of the 'Is Derived' attribute.
|
void |
setIsDerived(boolean value)
Sets the value of the '
Is Derived ' attribute |
boolean |
validateAssociationEnds(DiagnosticChain diagnostics,
Map context)
Association ends of associations with more than two ends must be owned by the association.
|
boolean |
validateBinaryAssociations(DiagnosticChain diagnostics,
Map context)
Only binary associations can be aggregations.
|
boolean |
validateSpecializedEndNumber(DiagnosticChain diagnostics,
Map context)
An association specializing another association has the same number of ends as the other association.
|
boolean |
validateSpecializedEndTypes(DiagnosticChain diagnostics,
Map context)
When an association specializes another association, every end of the specific association corresponds to an end of the general association,
and the specific end reaches the same type or a subtype of the more general end.
|
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
getRelatedElements
boolean isDerived()
"false"
.
Specifies whether the association is derived from other model elements such as other associations or constraints.
setIsDerived(boolean)
,
UMLPackage.getAssociation_IsDerived()
void setIsDerived(boolean value)
Is Derived
' attribute.
value
- the new value of the 'Is Derived' attribute.isDerived()
MDWEList<Type> getEndTypes()
Type
.
References the classifiers that are used as types of the ends of the association.
UMLPackage.getAssociation_EndType()
Type getEndType(String name)
Type
with the specified 'Name' from the 'End Type'
reference list.
name
- The 'Name' of the Type
to retrieve, or null
.Type
with the specified 'Name', or null
.getEndTypes()
Type getEndType(String name, boolean ignoreCase, EClass eClass)
Type
with the specified 'Name' from the 'End Type'
reference list.
name
- The 'Name' of the Type
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the Type
to retrieve, or null
.Type
with the specified 'Name', or null
.getEndTypes()
MDWEList<Property> getMemberEnds()
Property
.
It is bidirectional and its opposite is 'Association
'.
Each end represents participation of instances of the classifier connected to the end in links of the association.
UMLPackage.getAssociation_MemberEnd()
,
Property.getAssociation()
Property getMemberEnd(String name, Type type)
Property
with the specified 'Name', and 'Type' from
the 'Member End' reference list.
name
- The 'Name' of the Property
to retrieve, or null
.type
- The 'Type' of the Property
to retrieve, or null
.Property
with the specified 'Name', and 'Type', or
null
.getMemberEnds()
Property getMemberEnd(String name, Type type, boolean ignoreCase, EClass eClass)
Property
with the specified 'Name', and 'Type' from
the 'Member End' reference list.
name
- The 'Name' of the Property
to retrieve, or null
.type
- The 'Type' of the Property
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the Property
to retrieve, or null
.Property
with the specified 'Name', and 'Type', or
null
.getMemberEnds()
MDWEList<Property> getNavigableOwnedEnds()
Property
.
The navigable ends that are owned by the association itself.
UMLPackage.getAssociation_NavigableOwnedEnd()
Property createNavigableOwnedEnd(String name, Type type, EClass eClass)
Property
, with the specified 'Name', and 'Type', and
appends it to the 'Navigable Owned End' reference list.
name
- The 'Name' for the new Property
, or null
.type
- The 'Type' for the new Property
, or null
.eClass
- The Ecore class of the Property
to create.Property
.getNavigableOwnedEnds()
Property createNavigableOwnedEnd(String name, Type type)
Property
, with the specified 'Name', and 'Type', and
appends it to the 'Navigable Owned End' reference list.
name
- The 'Name' for the new Property
, or null
.type
- The 'Type' for the new Property
, or null
.Property
.getNavigableOwnedEnds()
Property getNavigableOwnedEnd(String name, Type type)
Property
with the specified 'Name', and 'Type' from
the 'Navigable Owned End' reference list.
name
- The 'Name' of the Property
to retrieve, or null
.type
- The 'Type' of the Property
to retrieve, or null
.Property
with the specified 'Name', and 'Type', or
null
.getNavigableOwnedEnds()
Property getNavigableOwnedEnd(String name, Type type, boolean ignoreCase, EClass eClass, boolean createOnDemand)
Property
with the specified 'Name', and 'Type' from
the 'Navigable Owned End' reference list.
name
- The 'Name' of the Property
to retrieve, or null
.type
- The 'Type' of the Property
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the Property
to retrieve, or null
.createOnDemand
- Whether to create a Property
on demand if not found.Property
with the specified 'Name', and 'Type', or
null
.getNavigableOwnedEnds()
MDWEList<Property> getOwnedEnds()
Property
.
It is bidirectional and its opposite is 'Owning Association
'.
The ends that are owned by the association itself.
UMLPackage.getAssociation_OwnedEnd()
,
Property.getOwningAssociation()
Property createOwnedEnd(String name, Type type, EClass eClass)
Property
, with the specified 'Name', and 'Type', and
appends it to the 'Owned End' containment reference list.
name
- The 'Name' for the new Property
, or null
.type
- The 'Type' for the new Property
, or null
.eClass
- The Ecore class of the Property
to create.Property
.getOwnedEnds()
Property createOwnedEnd(String name, Type type)
Property
, with the specified 'Name', and 'Type', and
appends it to the 'Owned End' containment reference list.
name
- The 'Name' for the new Property
, or null
.type
- The 'Type' for the new Property
, or null
.Property
.getOwnedEnds()
Property getOwnedEnd(String name, Type type)
Property
with the specified 'Name', and 'Type' from
the 'Owned End' containment reference list.
name
- The 'Name' of the Property
to retrieve, or null
.type
- The 'Type' of the Property
to retrieve, or null
.Property
with the specified 'Name', and 'Type', or
null
.getOwnedEnds()
Property getOwnedEnd(String name, Type type, boolean ignoreCase, EClass eClass, boolean createOnDemand)
Property
with the specified 'Name', and 'Type' from
the 'Owned End' containment reference list.
name
- The 'Name' of the Property
to retrieve, or null
.type
- The 'Type' of the Property
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the Property
to retrieve, or null
.createOnDemand
- Whether to create a Property
on demand if not found.Property
with the specified 'Name', and 'Type', or
null
.getOwnedEnds()
boolean validateSpecializedEndNumber(DiagnosticChain diagnostics, Map context)
boolean validateSpecializedEndTypes(DiagnosticChain diagnostics, Map context)
boolean validateBinaryAssociations(DiagnosticChain diagnostics, Map context)
boolean validateAssociationEnds(DiagnosticChain diagnostics, Map context)
boolean isBinary()