Class: Xmi::Sparx::SparxMappings::BaseMapping

Inherits:
Lutaml::Xml::Mapping
  • Object
show all
Defined in:
lib/xmi/sparx/mappings/base_mapping.rb

Overview

Base XML mapping class for Sparx EA XMI documents.

This reusable mapping class encapsulates all the XML element → attribute mappings for SparxRoot, eliminating the previous eval hack.

Examples:

Use in a model class

class SparxRoot < Root
  xml SparxMappings::BaseMapping
end

Extend with additional mappings

class ExtendedRoot < Root
  xml SparxMappings::GmlMapping
end