Method: Archimate::FileFormats::Serializer::ModelExchangeFile::V21::Model#model_attrs

Defined in:
lib/archimate/file_formats/serializer/model_exchange_file/v21/model.rb

#model_attrsObject



25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/archimate/file_formats/serializer/model_exchange_file/v21/model.rb', line 25

def model_attrs
  model.namespaces.merge(
    "xmlns" => "http://www.opengroup.org/xsd/archimate",
    "xmlns:dc" => "http://purl.org/dc/elements/1.1/",
    "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
    "xsi:schemaLocation" => %w[http://www.opengroup.org/xsd/archimate
                               http://www.opengroup.org/xsd/archimate/archimate_v2p1.xsd
                               http://purl.org/dc/elements/1.1/
                               http://dublincore.org/schemas/xmls/qdc/2008/02/11/dc.xsd].join(" "),
    # "xsi:schemaLocation" => model.schema_locations.join(" "),
    "identifier" => identifier(model.id)
  )
end