|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Association
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()
Method Summary | |
---|---|
Property |
createNavigableOwnedEnd(java.lang.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(java.lang.String name,
Type type,
org.eclipse.emf.ecore.EClass eClass)
Creates a new Property , with the specified 'Name', and 'Type', and appends it to the 'Navigable Owned End' reference list |
Property |
createOwnedEnd(java.lang.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(java.lang.String name,
Type type,
org.eclipse.emf.ecore.EClass eClass)
Creates a new Property , with the specified 'Name', and 'Type', and appends it to the 'Owned End' containment reference list |
Type |
getEndType(java.lang.String name)
Retrieves the first Type with the specified 'Name' from the 'End Type' reference list |
Type |
getEndType(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass)
Retrieves the first Type with the specified 'Name' from the 'End Type' reference list |
org.eclipse.emf.common.util.EList<Type> |
getEndTypes()
Returns the value of the 'End Type' reference list. |
Property |
getMemberEnd(java.lang.String name,
Type type)
Retrieves the first Property with the specified 'Name', and 'Type' from the 'Member End' reference list |
Property |
getMemberEnd(java.lang.String name,
Type type,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass)
Retrieves the first Property with the specified 'Name', and 'Type' from the 'Member End' reference list |
org.eclipse.emf.common.util.EList<Property> |
getMemberEnds()
Returns the value of the 'Member End' reference list. |
Property |
getNavigableOwnedEnd(java.lang.String name,
Type type)
Retrieves the first Property with the specified 'Name', and 'Type' from the 'Navigable Owned End' reference list |
Property |
getNavigableOwnedEnd(java.lang.String name,
Type type,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass,
boolean createOnDemand)
Retrieves the first Property with the specified 'Name', and 'Type' from the 'Navigable Owned End' reference list |
org.eclipse.emf.common.util.EList<Property> |
getNavigableOwnedEnds()
Returns the value of the 'Navigable Owned End' reference list. |
Property |
getOwnedEnd(java.lang.String name,
Type type)
Retrieves the first Property with the specified 'Name', and 'Type' from the 'Owned End' containment reference list |
Property |
getOwnedEnd(java.lang.String name,
Type type,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass,
boolean createOnDemand)
Retrieves the first Property with the specified 'Name', and 'Type' from the 'Owned End' containment reference list |
org.eclipse.emf.common.util.EList<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(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Association ends of associations with more than two ends must be owned by the association. |
boolean |
validateBinaryAssociations(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Only binary associations can be aggregations. |
boolean |
validateSpecializedEndNumber(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
An association specializing another association has the same number of ends as the other association. |
boolean |
validateSpecializedEndTypes(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> 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.emf.ecore.EModelElement |
---|
getEAnnotation, getEAnnotations |
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 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.emf.ecore.EModelElement |
---|
getEAnnotation, getEAnnotations |
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 org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.uml2.uml.Type |
---|
conformsTo, createAssociation, getAssociations, getPackage, setPackage |
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, eInvoke, 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.ParameterableElement |
---|
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter |
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, eInvoke, 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.TemplateableElement |
---|
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature |
Methods inherited from interface org.eclipse.uml2.uml.Relationship |
---|
getRelatedElements |
Method Detail |
---|
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()
org.eclipse.emf.common.util.EList<Type> getEndTypes()
Type
.
This feature subsets the following features:
References the classifiers that are used as types of the ends of the association.
UMLPackage.getAssociation_EndType()
Type getEndType(java.lang.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(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.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()
org.eclipse.emf.common.util.EList<Property> getMemberEnds()
Property
.
It is bidirectional and its opposite is 'Association
'.
This feature subsets the following features:
Member
'
UMLPackage.getAssociation_MemberEnd()
,
Property.getAssociation()
Property getMemberEnd(java.lang.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(java.lang.String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.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()
org.eclipse.emf.common.util.EList<Property> getNavigableOwnedEnds()
Property
.
This feature subsets the following features:
The navigable ends that are owned by the association itself.
UMLPackage.getAssociation_NavigableOwnedEnd()
Property createNavigableOwnedEnd(java.lang.String name, Type type, org.eclipse.emf.ecore.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(java.lang.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(java.lang.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(java.lang.String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.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()
org.eclipse.emf.common.util.EList<Property> getOwnedEnds()
Property
.
It is bidirectional and its opposite is 'Owning Association
'.
This feature subsets the following features:
Member End
'Feature
'Owned Member
'
UMLPackage.getAssociation_OwnedEnd()
,
Property.getOwningAssociation()
Property createOwnedEnd(java.lang.String name, Type type, org.eclipse.emf.ecore.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(java.lang.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(java.lang.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(java.lang.String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.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(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 validateSpecializedEndTypes(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 validateBinaryAssociations(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 validateAssociationEnds(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 isBinary()
|
Copyright 2003, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |