Class: Xmi::Sparx::SparxRoot
- Inherits:
-
Root
- Object
- Shale::Mapper
- Root
- Xmi::Sparx::SparxRoot
- Includes:
- SparxRootAttributes
- Defined in:
- lib/xmi/sparx.rb
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_attribute "id", to: :id map_attribute "label", to: :label map_attribute "uuid", to: :uuid map_attribute "href", to: :href map_attribute "idref", to: :idref map_attribute "type", to: :type map_element "Extension", to: :extension 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",
Class Method Summary collapse
Methods included from SparxRootAttributes
Methods included from RootAttributes
Methods inherited from Shale::Mapper
Class Method Details
.parse_xml(xml_content) ⇒ Object
948 949 950 951 952 953 954 |
# File 'lib/xmi/sparx.rb', line 948 def parse_xml(xml_content) xml_content = fix_encoding(xml_content) xml_content = replace_xmlns(xml_content) xml_content = replace_relative_ns(xml_content) from_xml(xml_content) end |