Sha256: 2d5499f2cc1a23c53fa0573f31df360850935a1278c833e5a305f6095be0d927

Contents?: true

Size: 810 Bytes

Versions: 1

Compression:

Stored size: 810 Bytes

Contents

require "lutaml/model"

module Reqif
  class ReqIfContent < Lutaml::Model::Serializable
    attribute :datatypes, Datatypes
    attribute :spec_types, SpecTypes
    attribute :spec_objects, SpecObjects
    attribute :spec_relations, SpecRelations
    attribute :specifications, Specifications
    attribute :spec_relation_groups, SpecRelationGroups

    xml do
      root "REQ-IF-CONTENT"
      namespace "http://www.omg.org/spec/ReqIF/20110401/reqif.xsd", "REQIF"

      map_element "DATATYPES", to: :datatypes
      map_element "SPEC-TYPES", to: :spec_types
      map_element "SPEC-OBJECTS", to: :spec_objects
      map_element "SPEC-RELATIONS", to: :spec_relations
      map_element "SPECIFICATIONS", to: :specifications
      map_element "SPEC-RELATION-GROUPS", to: :spec_relation_groups
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reqif-0.1.0 lib/reqif/req_if_content.rb