class ADIWG::Mdtranslator::Writers::Iso19115_2::LE_ProcessStepReport
Public Class Methods
new(xml, hResponseObj)
click to toggle source
# File lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_processReport.rb, line 16 def initialize(xml, hResponseObj) @xml = xml @hResponseObj = hResponseObj @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_2 end
Public Instance Methods
writeXML(hReport, inContext = nil)
click to toggle source
# File lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_processReport.rb, line 22 def writeXML(hReport, inContext = nil) outContext = 'process step report' outContext = inContext + ' ' + outContext unless inContext.nil? @xml.tag!('gmi:LE_ProcessStepReport') do # process step report - name (required) unless hReport[:name].nil? @xml.tag!('gmi:name') do @xml.tag!('gco:CharacterString', hReport[:name]) end end if hReport[:name].nil? @NameSpace.issueWarning(410, 'gmi:name', outContext) end # process step report - description unless hReport[:description].nil? @xml.tag!('gmi:description') do @xml.tag!('gco:CharacterString', hReport[:description]) end end if hReport[:description].nil? && @hResponseObj[:writerShowTags] @xml.tag!('gmi:description') end # process step report - file type unless hReport[:fileType].nil? @xml.tag!('gmi:fileType') do @xml.tag!('gco:CharacterString', hReport[:fileType]) end end if hReport[:fileType].nil? && @hResponseObj[:writerShowTags] @xml.tag!('gmi:fileType') end end # gmi:LE_ProcessStepReport end