Sha256: 2d4e8e17d6f59274986bfdbcb5e7ff13a9d81e219540ae6d87aa7db84c045dde
Contents?: true
Size: 1.41 KB
Versions: 14
Compression:
Stored size: 1.41 KB
Contents
# ISO <<Abstract>> ProcessStep # 19115-3 writer output in XML # History: # Stan Smith 2019-09-27 original script. require_relative 'class_liProcessStep' require_relative 'class_leProcessStep' module ADIWG module Mdtranslator module Writers module Iso19115_3 class ProcessStep def initialize(xml, hResponseObj) @xml = xml @hResponseObj = hResponseObj end def writeXML(hProcess, inContext = nil) # classes used liProcessClass = LI_ProcessStep.new(@xml, @hResponseObj) leProcessClass = LE_ProcessStep.new(@xml, @hResponseObj) outContext = inContext # use LE_ProcessStep if hProcess has any ... # processingInformation, reports # stepProducts (output) useLE = false useLE = true unless hProcess[:processingInformation].empty? useLE = true unless hProcess[:reports].empty? useLE = true unless hProcess[:stepProducts].empty? if useLE leProcessClass.writeXML(hProcess, outContext) else liProcessClass.writeXML(hProcess, outContext) end end # writeXML end # processStep class end end end end
Version data entries
14 entries across 14 versions & 1 rubygems