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
-
Field Summary
Fields inherited from class com.nomagic.magicdraw.autoid.AbstractRelationshipNumbering
nInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncollectRelations
(List<Element> elements) Collecting the Elements that are connected through given DirectedRelationshipgetAssociationTarget
(Association association) If the Association is directed, determine the Target elementCollection<Class<? extends Association>>
Which types of directedRelationships should be taken into consideration for element sthat are eithe rsource or target of the given relation types.Methods inherited from class com.nomagic.magicdraw.autoid.AbstractRelationshipNumbering
generateIds, isSuitableType
-
Constructor Details
-
DirectedAssociationNumbering
public DirectedAssociationNumbering()
-
-
Method Details
-
getAssociationTarget
Description copied from interface:com.nomagic.magicdraw.autoid.IAssociationNumbering
If the Association is directed, determine the Target element- Specified by:
getAssociationTarget
in interfacecom.nomagic.magicdraw.autoid.IAssociationNumbering
- Parameters:
association
- the Association- Returns:
- the target or null if not found
-
getAssociationTypes
Description copied from interface:com.nomagic.magicdraw.autoid.IAssociationNumbering
Which types of directedRelationships should be taken into consideration for element sthat are eithe rsource or target of the given relation types.- Specified by:
getAssociationTypes
in interfacecom.nomagic.magicdraw.autoid.IAssociationNumbering
- Returns:
- a collection of directed relationship types
-
collectRelations
Description copied from class:com.nomagic.magicdraw.autoid.AbstractRelationshipNumbering
Collecting the Elements that are connected through given DirectedRelationship- Specified by:
collectRelations
in classcom.nomagic.magicdraw.autoid.AbstractRelationshipNumbering
- Parameters:
elements
- the elements to test- Returns:
- a map of source-target connected by DirectedRelationship
-