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 Details

    • DirectedAssociationNumbering

      public DirectedAssociationNumbering()
  • Method Details

    • getAssociationTarget

      public Element getAssociationTarget(Association association)
      Description copied from interface: com.nomagic.magicdraw.autoid.IAssociationNumbering
      If the Association is directed, determine the Target element
      Specified by:
      getAssociationTarget in interface com.nomagic.magicdraw.autoid.IAssociationNumbering
      Parameters:
      association - the Association
      Returns:
      the target or null if not found
    • getAssociationTypes

      public Collection<Class<? extends Association>> 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 interface com.nomagic.magicdraw.autoid.IAssociationNumbering
      Returns:
      a collection of directed relationship types
    • collectRelations

      public Map<Element,Element> collectRelations(List<Element> elements)
      Description copied from class: com.nomagic.magicdraw.autoid.AbstractRelationshipNumbering
      Collecting the Elements that are connected through given DirectedRelationship
      Specified by:
      collectRelations in class com.nomagic.magicdraw.autoid.AbstractRelationshipNumbering
      Parameters:
      elements - the elements to test
      Returns:
      a map of source-target connected by DirectedRelationship