public interface MAssociationEndpointDescription extends MMetaDescription
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
assocTypeNames |
static int |
M_ASSOCIATION_BY_CONSTRAINT_REF
Takes care of the case in which an instance of class A and an instance of
class B together contain enough key information to uniquely associate them
with an instance of class C.
|
static int |
M_ASSOCIATION_BY_CONTAINMENT
Implies that an instance of class A owns one or more instances of class B.
|
static int |
M_ASSOCIATION_BY_REFERENCE
An instance of class A is associated with zero or more instances of class B.
|
static int |
M_INFINITY
Denote multiplicity n+
|
Modifier and Type | Method and Description |
---|---|
int |
getAssociationType()
Return the association type for this
MAssociationEndpointDescription
from the point of view of this endpoint. |
MModeledClassDescription |
getEndpointClass()
Return the class that is associated with this association endpoint
encapsulated as an
MModeledClassDescription . |
MAttributeDescription |
getKeyAttribute(java.lang.String name)
Return the key attribute specified by name as an MAttributeDescription instance.
|
java.util.Enumeration |
getKeyAttributes()
Return a list of all key attributes.
|
int |
getMaxMultiplicity()
Return the maximum association cardinality
for this association endpoint description.
|
int |
getMinMultiplicity()
Return the minimum association cardinality
for this association endpoint description.
|
java.lang.String |
getRoleName()
Return the name of this half association.
|
boolean |
isNavigable()
Return true if traversal can be started or continued
from this end point; false otherwise.
|
getProperties, getProperty, getPropertyCount, getPropertyNames, isOK, isOK
static final int M_INFINITY
static final int M_ASSOCIATION_BY_REFERENCE
static final int M_ASSOCIATION_BY_CONTAINMENT
static final int M_ASSOCIATION_BY_CONSTRAINT_REF
CONSTRAINT_REF
.static final java.lang.String[] assocTypeNames
MModeledClassDescription getEndpointClass()
MModeledClassDescription
.java.lang.String getRoleName()
int getMinMultiplicity()
int getMaxMultiplicity()
int getAssociationType()
MAssociationEndpointDescription
from the point of view of this endpoint. Can be one of the following -
boolean isNavigable()
java.util.Enumeration getKeyAttributes()
Enumeration.nextElement()
can be cast to MAttributeDescription
.MAttributeDescription getKeyAttribute(java.lang.String name)