|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--UML.Semantic.Foundation.Core.ModelElement
|
+--UML.Semantic.Foundation.Core.Namespace
|
+--UML.Semantic.Foundation.Core.GeneralizableElement
|
+--UML.Semantic.Foundation.Core.Classifier
|
+--UML.Semantic.Foundation.Core.Class
|
+--UML.Semantic.Foundation.Core.AssociationClass
An association class is an association that is also a class. It not only connects a set of classifiers but also defines a set of features that belong to the relationship itself and not any of the classifiers.
In the metamodel an AssociationClass is a declaration of a semantic relationship between Classifiers which has a set of features of its own. AssociationClass is a subclass of both Association and Class (i.e. each AssociationClass is both an Association and a Class). Therefore, an AssociationClass has both AssociationEnds and Features.
Since Java does not support multiple inheritance, an AssociationClass is modeled as a Class subclass which contains an Association
.
| Field Summary | |
static int |
AGGR_COMPOSITE
|
static int |
AGGR_NONE
|
static int |
AGGR_SHARED
|
| Constructor Summary | |
AssociationClass()
Constructor. |
|
| Method Summary | |
void |
add(AssociationEnd elem)
Adds an association end to this association class. |
boolean |
check()
Checks if well-formedness rules are respected in this model element. |
AssociationEnd |
connectionAt(int i)
Gets the i-th association end of this association class. |
int |
getAggregation()
Gets the aggregation kind of this association class. |
java.util.Vector |
getConnection()
Gets the set of association ends. |
| Methods inherited from class UML.Semantic.Foundation.Core.Class |
getInfo, getIsActive, setIsActive |
| Methods inherited from class UML.Semantic.Foundation.Core.Classifier |
add, add, add, allAssociationEnd, allAssociations, allAttributes, allFeatures, allMethods, allOperations, allOppositeAssociationEnd, getAssociationEnd, getAssociations, getAttribute, getAttribute, getAttributeCount, getFeature, getFeature, getOperation, getOperation, getOperationCount, getSpecification, inheritedAssociationEnd, inheritedAssociations, inheritedAttributes, inheritedOperations, inheritedOppositeAssociationEnd, oppositeAssociationEnd, setRealization, setSpecification |
| Methods inherited from class UML.Semantic.Foundation.Core.GeneralizableElement |
allOwnedElement, allSupertype, getGeneralization, getIsAbstract, getIsLeaf, getIsRoot, getSpecialization, getSupertype, inheritedOwnedElement, inheritedSupertype, setIsAbstract, setIsLeaf, setIsRoot |
| Methods inherited from class UML.Semantic.Foundation.Core.Namespace |
add, allContents, allContents, getOwnedElement, subContents |
| Methods inherited from class UML.Semantic.Foundation.Core.ModelElement |
add, getBindingList, getConstraintList, getElementType, getErrors, getHref, getId, getIdentification, getIdref, getIndex, getIsOwned, getLabel, getLocator, getName, getNamespace, getNamespaceId, getStereotype, getTemplate, getTemplateParameterList, getTitle, getUuid, getUuidref, getVisibility, getVisibilitySymbol, getWarnings, setElementType, setErrors, setHref, setId, setIdref, setIndex, setIsOwned, setLabel, setName, setNamespace, setTemplate, setTitle, setUuid, setUuidref, setVisibility, setWarnings |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int AGGR_NONE
public static final int AGGR_SHARED
public static final int AGGR_COMPOSITE
| Constructor Detail |
public AssociationClass()
| Method Detail |
public void add(AssociationEnd elem)
public java.util.Vector getConnection()
public AssociationEnd connectionAt(int i)
public int getAggregation()
public boolean check()
check in class Class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||