Class ReferenceSubsettings

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

@OpenApiAll public class ReferenceSubsettings extends Object
Utility class to work with ReferenceSubsetting
  • Constructor Details

    • ReferenceSubsettings

      public ReferenceSubsettings()
  • Method Details

    • getEffectiveReferenced

      public static <T extends Feature> T getEffectiveReferenced(T feature, Class<T> kind)
    • getEffectiveReferenced

      @CheckForNull public static Feature getEffectiveReferenced(Feature feature)
    • getReferenced

      @CheckForNull public static Feature getReferenced(Feature referencing)
    • setReferenced

      public static void setReferenced(Feature referencing, @CheckForNull Feature referenced)
    • setReferenced

      public static boolean setReferenced(Feature referencing, List<? extends Feature> referencedAsChain)
      Sets referenced feature of given referencing feature. Owned by ReferenceSubsetting anonymous feature with FeatureChaining is used in case non-single referenced is passed.
      Parameters:
      referencing - referencing feature
      referencedAsChain - referenced feature as a chain
      Returns:
      if modified
    • getReferencedAsChain

      public static List<Feature> getReferencedAsChain(Feature feature)
      Returns the referenced feature chain of the given feature.
      Parameters:
      feature - the referencing feature
      Returns:
      the referenced feature chain, or an empty list if none exists
    • getChainingFeatureOfReferenced

      public static List<Feature> getChainingFeatureOfReferenced(Feature referencing)
      Returns the chaining feature path of the referenced feature.
      Parameters:
      referencing - the referencing feature
      Returns:
      list of chaining features, or an empty list if none exist