Sha256: 964633a6bad2e80ca9e8dde37214b16df98c739aaea56340275bfd5b9837fee5

Contents?: true

Size: 963 Bytes

Versions: 1

Compression:

Stored size: 963 Bytes

Contents

require_relative "colspec"
require_relative "thead"
require_relative "tbody"

module Oasis
  module Etm
    class Tgroup < Lutaml::Model::Serializable
      # Required attributes
      attribute :cols, :integer

      # Optional attributes
      attribute :colsep, :integer, values: [0, 1]
      attribute :rowsep, :integer, values: [0, 1]
      attribute :align, :string, values: %w[left right center justify char]

      # Content
      attribute :colspecs, Colspec, collection: true
      attribute :thead, Thead
      attribute :tbody, Tbody

      xml do
        root "tgroup"

        # Attribute mappings
        map_attribute "cols", to: :cols
        map_attribute "colsep", to: :colsep
        map_attribute "rowsep", to: :rowsep
        map_attribute "align", to: :align

        # Content mappings
        map_element "colspec", to: :colspecs
        map_element "thead", to: :thead
        map_element "tbody", to: :tbody
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
oasis-etm-0.1.0 lib/oasis/etm/tgroup.rb