Documentation Language: Swift

Structure

ATLTargetPattern

Represents a target pattern for element creation in ATL rules.

struct ATLTargetPattern

Overview

Target patterns define the output specifications for both matched and called rules. They specify the type of target elements to create, variable binding for reference within the rule, and property bindings that define the relationships and values for the created elements.

Overview

Target patterns support several key features:

Example Usage

let personPattern = ATLTargetPattern(
    variableName: "targetPerson",
    type: "Persons!Person",
    bindings: [
        "fullName": ATLVariableExpression(name: "s.firstName"),
        "gender": ATLHelperCallExpression(helperName: "determineGender", arguments: [])
    ]
)

Topics

Operators

Initializers

?
init(variableName:type:bindings:)

Creates a new ATL target pattern.

Instance Properties

V
bindings

Property bindings that define values for the created element.

V
type

The type of target element to create.

V
variableName

The variable name for binding the created target element.

Instance Methods

Default Implementations

Relationships

Conforms To