java.lang.Object
com.dassault_systemes.modeler.sysml.model.Modifiers

@OpenApiAll public class Modifiers extends Object
Utility class providing helper methods for determining whether SysML/KerML modifiers (such as composite) are applicable to features or types.

These checks centralize the rules that restrict modifier applicability based on metaclass, membership context, and semantic constraints.

  • Constructor Details

    • Modifiers

      public Modifiers()
  • Method Details

    • isCompositeApplicable

      public static boolean isCompositeApplicable(Feature feature)
      Determines whether the composite modifier is applicable to the given feature. Composite is allowed only when:
      • the feature can semantically be composite
      • the feature is not a pure expression
      Parameters:
      feature - the feature to check
      Returns:
      true if the composite modifier may be applied
    • areModifiersApplicable

      public static boolean areModifiersApplicable(Type type)
      Determines whether modifiers in general are applicable to the given type. Applicability depends on whether the type is a feature or classifier.
      Parameters:
      type - the type to check
      Returns:
      true if modifiers may be applied