Class MetadataAccessExpressions

java.lang.Object
com.dassault_systemes.modeler.kerml.model.MetadataAccessExpressions

@OpenApiAll public class MetadataAccessExpressions extends Object
Utility class to work with MetadataAccessExpression
  • 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 modify
      referencedElement - the element to reference, or null to clear
    • createMetadataAccessExpression

      public static MetadataAccessExpression createMetadataAccessExpression(Element referencedElement)
      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