Sha256: bf2e1f019db25b1989cb7c4ec0161325ffe12160df914899a4e3f0f85e5d6755

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

require "lutaml/model"

module Reqif
  class SpecHierarchy < Lutaml::Model::Serializable
    attribute :desc, :string
    attribute :identifier, :string
    attribute :is_editable, :boolean
    attribute :is_table_internal, :boolean
    attribute :last_change, :time
    attribute :long_name, :string
    attribute :alternative_id, AlternativeId
    attribute :children, Children
    attribute :editable_atts, EditableAtts
    attribute :object, Object

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

      map_attribute "DESC", to: :desc
      map_attribute "IDENTIFIER", to: :identifier
      map_attribute "IS-EDITABLE", to: :is_editable
      map_attribute "IS-TABLE-INTERNAL", to: :is_table_internal
      map_attribute "LAST-CHANGE", to: :last_change
      map_attribute "LONG-NAME", to: :long_name
      map_element "ALTERNATIVE-ID", to: :alternative_id
      map_element "CHILDREN", to: :children
      map_element "EDITABLE-ATTS", to: :editable_atts
      map_element "OBJECT", to: :object
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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