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.IAssociationNumberingNumbering 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)Collecting the Elements that are connected through given DirectedRelationshipElementgetAssociationTarget(Association association)If the Association is directed, determine the Target elementjava.util.Collection<java.lang.Class<? extends Association>>getAssociationTypes()Which types of directedRelationships should be taken into consideration for element sthat are eithe rsource or target of the given relation types.
-
-
-
Method Detail
-
getAssociationTarget
public Element getAssociationTarget(Association association)
Description copied from interface:com.nomagic.magicdraw.autoid.IAssociationNumberingIf the Association is directed, determine the Target element- Specified by:
getAssociationTargetin interfacecom.nomagic.magicdraw.autoid.IAssociationNumbering- Parameters:
association- the Association- Returns:
- the target or null if not found
-
getAssociationTypes
public java.util.Collection<java.lang.Class<? extends Association>> getAssociationTypes()
Description copied from interface:com.nomagic.magicdraw.autoid.IAssociationNumberingWhich types of directedRelationships should be taken into consideration for element sthat are eithe rsource or target of the given relation types.- Specified by:
getAssociationTypesin interfacecom.nomagic.magicdraw.autoid.IAssociationNumbering- Returns:
- a collection of directed relationship types
-
collectRelations
public java.util.Map<Element,Element> collectRelations(java.util.List<Element> elements)
Description copied from class:com.nomagic.magicdraw.autoid.AbstractRelationshipNumberingCollecting the Elements that are connected through given DirectedRelationship- Specified by:
collectRelationsin classcom.nomagic.magicdraw.autoid.AbstractRelationshipNumbering- Parameters:
elements- the elements to test- Returns:
- a map of source-target connected by DirectedRelationship
-
-