Documentation Language: Swift

Structure

ATLExpressionXMISerializer

Serializes ATL/OCL expressions to Eclipse ATL XMI format.

struct ATLExpressionXMISerializer

Overview

This serializer converts expression trees into the standard Eclipse ATL XMI representation, following the OCL metamodel structure defined in the ATL specification.

Expression Types Supported

XMI Format

Expressions are serialized with xsi:type attributes to distinguish types:

<expression xsi:type="ocl:VariableExp" varName="sourceElement"/>
<expression xsi:type="ocl:OperationCallExp" operationName="concat">
  <source xsi:type="ocl:VariableExp" varName="firstName"/>
  <arguments xsi:type="ocl:StringExp" stringSymbol="..."/>
</expression>

Topics

Initializers

?
init()

Creates a new expression XMI serializer.

Instance Methods

F
serialize(_:indent:)

Serializes an ATL expression to XMI format.