Class: Xmi::Sparx::SparxRoot
- Inherits:
-
Root
- Object
- Lutaml::Model::Serializable
- Root
- Xmi::Sparx::SparxRoot
- Includes:
- SparxRootAttributes
- Defined in:
- lib/xmi/sparx.rb
Overview
rubocop:disable Metrics/ClassLength
Constant Summary collapse
- @@default_mapping =
rubocop:disable Style/ClassVars
<<-MAP # rubocop:disable Style/ClassVars root "XMI" namespace "http://www.omg.org/spec/XMI/20131001", "xmi" map_element "Extension", to: :extension, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi" map_element "publicationDate", to: :publication_date, namespace: "http://www.sparxsystems.com/profiles/thecustomprofile/1.0", prefix: "thecustomprofile" map_element "edition", to: :edition, namespace: "http://www.sparxsystems.com/profiles/thecustomprofile/1.0", prefix: "thecustomprofile" map_element "number", to: :number, namespace: "http://www.sparxsystems.com/profiles/thecustomprofile/1.0", prefix: "thecustomprofile" map_element "yearVersion", to: :year_version, namespace: "http://www.sparxsystems.com/profiles/thecustomprofile/1.0", prefix: "thecustomprofile" map_element "ModelicaParameter", to: :modelica_parameter, namespace: "http://www.sparxsystems.com/profiles/SysPhS/1.0", prefix: "SysPhS" map_element "import", to: :eauml_import, namespace: "http://www.sparxsystems.com/profiles/EAUML/1.0", prefix: "EAUML" map_element "ApplicationSchema", to: :gml_application_schema, namespace: "http://www.sparxsystems.com/profiles/GML/1.0", prefix: "GML" map_element "CodeList", to: :gml_code_list, namespace: "http://www.sparxsystems.com/profiles/GML/1.0", prefix: "GML" map_element "DataType", to: :gml_data_type, namespace: "http://www.sparxsystems.com/profiles/GML/1.0", prefix: "GML" map_element "Union", to: :gml_union, namespace: "http://www.sparxsystems.com/profiles/GML/1.0", prefix: "GML" map_element "Enumeration", to: :gml_enumeration, namespace: "http://www.sparxsystems.com/profiles/GML/1.0", prefix: "GML" map_element "Type", to: :gml_type, namespace: "http://www.sparxsystems.com/profiles/GML/1.0", prefix: "GML" map_element "FeatureType", to: :gml_feature_type, namespace: "http://www.sparxsystems.com/profiles/GML/1.0", prefix: "GML" map_element "property", to: :gml_property, namespace: "http://www.sparxsystems.com/profiles/GML/1.0", prefix: "GML" map_element "Model", to: :model, namespace: "http://www.omg.org/spec/UML/20131001",
Class Method Summary collapse
Methods included from SparxRootAttributes
Methods included from RootAttributes
Methods inherited from Lutaml::Model::Serializable
Class Method Details
.parse_xml(xml_content) ⇒ Object
951 952 953 954 955 956 957 958 |
# File 'lib/xmi/sparx.rb', line 951 def parse_xml(xml_content) xml_content = fix_encoding(xml_content) xml_content = replace_xmlns(xml_content) xml_content = replace_relative_ns(xml_content) xml_content = replace_ea_xmlns(xml_content) from_xml(xml_content) end |