Class DirectedAssociationNumbering
- java.lang.Object
-
- com.nomagic.magicdraw.autoid.AbstractRelationshipNumbering
-
- com.nomagic.magicdraw.autoid.custom.DirectedAssociationNumbering
-
- All Implemented Interfaces:
com.nomagic.magicdraw.autoid.IAssociationNumbering
,INumberingAction
- Direct Known Subclasses:
AggregationCompositionNumbering
@OpenApiAll public class DirectedAssociationNumbering extends com.nomagic.magicdraw.autoid.AbstractRelationshipNumbering implements com.nomagic.magicdraw.autoid.IAssociationNumbering
Numbering for Elements connected by directed Associations Feb 21, 2012
-
-
Constructor Summary
Constructors Constructor Description DirectedAssociationNumbering()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<Element,Element>
collectRelations(java.util.List<Element> elements)
private Element
getAssociationSource(Association rel, Element target)
Get the other end of an association, given the target.Element
getAssociationTarget(Association association)
java.util.Collection<java.lang.Class<? extends Association>>
getAssociationTypes()
-
-
-
Method Detail
-
getAssociationTarget
public Element getAssociationTarget(Association association)
- Specified by:
getAssociationTarget
in interfacecom.nomagic.magicdraw.autoid.IAssociationNumbering
-
getAssociationTypes
public java.util.Collection<java.lang.Class<? extends Association>> getAssociationTypes()
- Specified by:
getAssociationTypes
in interfacecom.nomagic.magicdraw.autoid.IAssociationNumbering
-
collectRelations
public java.util.Map<Element,Element> collectRelations(java.util.List<Element> elements)
- Specified by:
collectRelations
in classcom.nomagic.magicdraw.autoid.AbstractRelationshipNumbering
-
getAssociationSource
private Element getAssociationSource(Association rel, Element target)
Get the other end of an association, given the target.- Parameters:
rel
- the associationtarget
- the target end of the association- Returns:
- the source end of the association
-
-