Sha256: f981b3972de99a7a3dfd365e242dd8525fc0727349d06b38d3a7d792eb03ec83

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

# ISO <<Class>> MI_RangeElementDescription attributes
# 19115-3 writer output in XML

require_relative '../iso19115_3_writer'

module ADIWG
  module Mdtranslator
    module Writers
      module Iso19115_3

        class MI_RangeElementDescription

          def initialize(xml, hResponseObj)
            @xml = xml
            @hResponseObj = hResponseObj
            @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_3
          end

          def writeXML(hAttribute, inContext = nil)

            unless hAttribute[:name].nil?
              @xml.tag!('mrc:name') do
                @xml.tag!('gco:CharacterString', hAttribute[:name])
              end
            end

            unless hAttribute[:definition].nil?
              @xml.tag!('mrc:definition') do
                @xml.tag!('gco:CharacterString', hAttribute[:definition])
              end
            end

            hAttribute[:rangeElement].each do |hRangeElement|
              @xml.tag!('mrc:rangeElement') do
                @xml.tag!('gco:Record') do
                  @xml.tag!('gco:CharacterString', hRangeElement)
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.19.0.pre.beta.7 lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_rangeElementDescription.rb