Class: ADIWG::Mdtranslator::Writers::Iso19115_3::LE_ProcessStepReport
- Inherits:
-
Object
- Object
- ADIWG::Mdtranslator::Writers::Iso19115_3::LE_ProcessStepReport
- Defined in:
- lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_processReport.rb
Instance Method Summary collapse
-
#initialize(xml, hResponseObj) ⇒ LE_ProcessStepReport
constructor
A new instance of LE_ProcessStepReport.
- #writeXML(hReport, inContext = nil) ⇒ Object
Constructor Details
#initialize(xml, hResponseObj) ⇒ LE_ProcessStepReport
Returns a new instance of LE_ProcessStepReport.
16 17 18 19 20 |
# File 'lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_processReport.rb', line 16 def initialize(xml, hResponseObj) @xml = xml @hResponseObj = hResponseObj @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_3 end |
Instance Method Details
#writeXML(hReport, inContext = nil) ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_processReport.rb', line 22 def writeXML(hReport, inContext = nil) outContext = 'process step report' outContext = inContext + ' ' + outContext unless inContext.nil? @xml.tag!('mrl:LE_ProcessStepReport') do # process step report - name (required) unless hReport[:name].nil? @xml.tag!('mrl:name') do @xml.tag!('gco:CharacterString', hReport[:name]) end end if hReport[:name].nil? @NameSpace.issueWarning(440, 'mrl:name', outContext) end # process step report - description unless hReport[:description].nil? @xml.tag!('mrl:description') do @xml.tag!('gco:CharacterString', hReport[:description]) end end if hReport[:description].nil? && @hResponseObj[:writerShowTags] @xml.tag!('mrl:description') end # process step report - file type unless hReport[:fileType].nil? @xml.tag!('mrl:fileType') do @xml.tag!('gco:CharacterString', hReport[:fileType]) end end if hReport[:fileType].nil? && @hResponseObj[:writerShowTags] @xml.tag!('mrl:fileType') end end # mrl:LE_ProcessStepReport end |