|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Association'. An association describes a set of tuples whose values refer to typed instances. An instance of an association is called a link.
The following features are supported:
UMLPackage.getAssociation()
Field Summary |
Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
SEPARATOR |
Method Summary | |
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 |
EList |
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 |
EList |
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 |
EList |
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 |
EList |
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. |
Methods inherited from interface org.eclipse.uml2.uml.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 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, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.uml2.uml.RedefinableElement |
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid |
Methods inherited from interface org.eclipse.uml2.uml.Type |
conformsTo, createAssociation, getAssociations, getPackage, setPackage |
Methods inherited from interface org.eclipse.uml2.uml.ParameterableElement |
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter |
Methods inherited from interface org.eclipse.uml2.uml.TemplateableElement |
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature |
Methods inherited from interface org.eclipse.uml2.uml.Relationship |
getRelatedElements |
Method Detail |
public boolean isDerived()
"false"
.
Specifies whether the association is derived from other model elements such as other associations or constraints.
Association.setIsDerived(boolean)
,
UMLPackage.getAssociation_IsDerived()
public void setIsDerived(boolean value)
Is Derived
' attribute.
value
- the new value of the 'Is Derived' attribute.Association.isDerived()
public EList getEndTypes()
Type
.
References the classifiers that are used as types of the ends of the association.
UMLPackage.getAssociation_EndType()
public 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
.Association.getEndTypes()
public 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
.Association.getEndTypes()
public EList 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()
public 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
.Association.getMemberEnds()
public 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
.Association.getMemberEnds()
public EList getNavigableOwnedEnds()
Property
.
The navigable ends that are owned by the association itself.
UMLPackage.getAssociation_NavigableOwnedEnd()
public 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
.Association.getNavigableOwnedEnds()
public 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
.Association.getNavigableOwnedEnds()
public 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
.Association.getNavigableOwnedEnds()
public 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
.Association.getNavigableOwnedEnds()
public EList 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()
public 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
.Association.getOwnedEnds()
public 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
.Association.getOwnedEnds()
public 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
.Association.getOwnedEnds()
public 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
.Association.getOwnedEnds()
public boolean validateSpecializedEndNumber(DiagnosticChain diagnostics, Map context)
public boolean validateSpecializedEndTypes(DiagnosticChain diagnostics, Map context)
public boolean validateBinaryAssociations(DiagnosticChain diagnostics, Map context)
public boolean validateAssociationEnds(DiagnosticChain diagnostics, Map context)
public boolean isBinary()
|
Copyright 2003, 2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |