Class: Ea::Transformers::QeaToXmi::AssociationEnd

Inherits:
Struct
  • Object
show all
Defined in:
lib/ea/transformers/qea_to_xmi/association_end.rb

Overview

Lightweight value object returned by Transformer#build_association_end.

Carries both the synthesised xmi:id of the <ownedEnd> element (used to populate <memberEnd idref="..."> on the enclosing <packagedElement xmi:type="uml:Association">) and the model instance itself.

Using a Struct (not a Hash) makes the contract visible at the call site: typos like end.xmii_id raise NoMethodError instead of silently returning nil.

Instance Attribute Summary collapse

Instance Attribute Details

#modelObject

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



16
17
18
# File 'lib/ea/transformers/qea_to_xmi/association_end.rb', line 16

def model
  @model
end

#xmi_idObject

Returns the value of attribute xmi_id

Returns:

  • (Object)

    the current value of xmi_id



16
17
18
# File 'lib/ea/transformers/qea_to_xmi/association_end.rb', line 16

def xmi_id
  @xmi_id
end