Class SatisfyRequirementUsages
java.lang.Object
com.dassault_systemes.modeler.sysml.model.SatisfyRequirementUsages
Utility class to work with
SatisfyRequirementUsage-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleansetOwnedSubjectParameterValue(SatisfyRequirementUsage requirement, List<Feature> chain) Sets the value of the owned subject parameter of the given satisfy requirement using the provided feature chain.
-
Constructor Details
-
SatisfyRequirementUsages
public SatisfyRequirementUsages()
-
-
Method Details
-
setOwnedSubjectParameterValue
public static boolean setOwnedSubjectParameterValue(SatisfyRequirementUsage requirement, List<Feature> chain) Sets the value of the owned subject parameter of the given satisfy requirement using the provided feature chain. The update logic adapts based on the existing expression type:- If the value is a
FeatureReferenceExpression, its referent is updated. - If the value is a
FeatureChainExpressionand the chain has more than one element, the chain expression is updated viaFeatureChainExpressions.setSourceReferentAndTarget(com.dassault_systemes.modeler.kerml.model.kerml.FeatureChainExpression, java.util.List<com.dassault_systemes.modeler.kerml.model.kerml.Feature>). - Otherwise, a new chain or reference expression is created and assigned.
- Parameters:
requirement- the satisfy requirement usagechain- the feature chain to assign- Returns:
- true if the subject parameter value was updated, false if no subject exists
- If the value is a
-