Class MetadataAccessExpressions
java.lang.Object
com.dassault_systemes.modeler.kerml.model.MetadataAccessExpressions
Utility class to work with
MetadataAccessExpression-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MetadataAccessExpressioncreateMetadataAccessExpression(Element referencedElement) Creates a new metadata access expression referencing the given element.static MembershipReturns the membership that stores the referenced element for the given metadata access expression.static voidsetReferencedElement(MetadataAccessExpression expression, Element referencedElement) Sets the referenced element of the given metadata access expression.
-
Constructor Details
-
MetadataAccessExpressions
public MetadataAccessExpressions()
-
-
Method Details
-
setReferencedElement
public static void setReferencedElement(MetadataAccessExpression expression, @CheckForNull Element referencedElement) Sets the referenced element of the given metadata access expression. Creates or reuses an appropriate membership to store the reference.- Parameters:
expression- the metadata access expression to modifyreferencedElement- the element to reference, or null to clear
-
createMetadataAccessExpression
Creates a new metadata access expression referencing the given element.- Parameters:
referencedElement- the element to reference- Returns:
- a newly created metadata access expression
-
getReferencedElementMembership
@CheckForNull public static Membership getReferencedElementMembership(MetadataAccessExpression expression) Returns the membership that stores the referenced element for the given metadata access expression.- Parameters:
expression- the metadata access expression- Returns:
- the membership holding the referenced element, or null if none exists
-