Class FeatureReferenceExpressions
java.lang.Object
com.dassault_systemes.modeler.kerml.model.FeatureReferenceExpressions
Utility class to work with
FeatureReferenceExpression-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureReferenceExpressionCreates a feature reference expression for the given feature.static FeatureReferenceExpressionCreates a feature reference expression for the given list of features.static MembershipgetReferentMembership(FeatureReferenceExpression expression) Returns the membership that stores the referenced feature(s) for the given feature reference expression.static voidsetOwnedReferent(FeatureReferenceExpression expression, Feature referent) Sets the referent of the expression using an owned feature membership.static voidsetReferent(FeatureReferenceExpression expression, Feature referent) Sets the referent of the feature reference expression.static voidsetReferent(FeatureReferenceExpression expression, List<Feature> referent) Sets the referent of the expression to the given list of features.
-
Constructor Details
-
FeatureReferenceExpressions
public FeatureReferenceExpressions()
-
-
Method Details
-
create
Creates a feature reference expression for the given feature.- Parameters:
referent- the referenced feature- Returns:
- created feature reference expression
-
create
Creates a feature reference expression for the given list of features. Sets the referent and creates a return parameter.- Parameters:
referent- list of referenced features- Returns:
- created feature reference expression
-
setReferent
Sets the referent of the feature reference expression.- Parameters:
expression- the expression to updatereferent- the referenced feature
-
setOwnedReferent
Sets the referent of the expression using an owned feature membership.- Parameters:
expression- the expression to updatereferent- the referenced feature
-
setReferent
Sets the referent of the expression to the given list of features.- Parameters:
expression- the expression to updatereferent- list of referenced features
-
getReferentMembership
Returns the membership that stores the referenced feature(s) for the given feature reference expression.- Parameters:
expression- the expression- Returns:
- referent membership, or null
-