Package com.nomagic.magicdraw.uml2
Class Associations
java.lang.Object
com.nomagic.magicdraw.uml2.Associations
Convenience utility methods that operate on
Association
elements.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Property
getFirstMemberEnd
(Association association) Get first property member end of association.static Property
getSecondMemberEnd
(Association association) Get second property member end of association.static boolean
isAggregation
(Association association, AggregationKind aggregationKind) Determines if association is of specified aggregation kind.static boolean
isDirectedAggregation
(Association association, AggregationKind aggregationKind) Determines if association is of specified aggregation kind and directed.static boolean
isDirectedAssociation
(Association association) Check if association is directedstatic boolean
isNonNavigableAssociation
(Association association) Check if association is non navigable
-
Constructor Details
-
Associations
public Associations()
-
-
Method Details
-
isAggregation
Determines if association is of specified aggregation kind.- Parameters:
association
- association elementaggregationKind
- AggregationKindEnum.SHARED - aggregation, AggregationKindEnum.COMPOSITE - composition- Returns:
- true if one of association ends has set specified aggregation kind
-
isDirectedAggregation
public static boolean isDirectedAggregation(Association association, AggregationKind aggregationKind) Determines if association is of specified aggregation kind and directed.- Parameters:
association
- association elementaggregationKind
- AggregationKindEnum.SHARED - aggregation, AggregationKindEnum.COMPOSITE - composition- Returns:
- true if one of association ends has set specified aggregation kind
-
isDirectedAssociation
Check if association is directed- Parameters:
association
- association- Returns:
- true if at least one end is navigable
-
getFirstMemberEnd
Get first property member end of association.- Parameters:
association
- association element- Returns:
- first property member end of association
-
getSecondMemberEnd
Get second property member end of association.- Parameters:
association
- association element- Returns:
- second property member end of association
-