Class Associations

java.lang.Object
com.dassault_systemes.modeler.kerml.model.Associations

@OpenApiAll public class Associations extends Object
Utility class to work with Association
  • Field Details

    • SOURCE_INDEX

      public static final int SOURCE_INDEX
      Index of the source end feature in the association’s ordered end list
      See Also:
    • TARGET_INDEX

      public static final int TARGET_INDEX
      Index of the target end feature in the association’s ordered end list
      See Also:
  • Constructor Details

    • Associations

      public Associations()
  • Method Details

    • getOrCreateSourceEndFeature

      public static Feature getOrCreateSourceEndFeature(Association association)
      Returns the source end feature of the association, creating it if necessary.
      Parameters:
      association - the association
      Returns:
      existing or newly created source end feature
    • getOrCreateTargetEndFeature

      public static Feature getOrCreateTargetEndFeature(Association association)
      Returns the target end feature of the association, creating it if necessary.
      Parameters:
      association - the association
      Returns:
      existing or newly created target end feature
    • getAssociationEndSourceFeature

      @CheckForNull public static Feature getAssociationEndSourceFeature(Association association)
      Returns the source feature of the association end.
      Parameters:
      association - the association
      Returns:
      source end feature, or null
    • getAssociationEndTargetFeature

      public static List<Feature> getAssociationEndTargetFeature(Association association)
      Returns the target features of the association end.
      Parameters:
      association - the association
      Returns:
      list of target end features