Class Modifiers
java.lang.Object
com.dassault_systemes.modeler.sysml.model.Modifiers
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanareModifiersApplicable(Type type) Determines whether modifiers in general are applicable to the given type.static booleanisCompositeApplicable(Feature feature) Determines whether the composite modifier is applicable to the given feature.
-
Constructor Details
-
Modifiers
public Modifiers()
-
-
Method Details
-
isCompositeApplicable
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
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
-