Sha256: abb0e2add1df7661cc5e081409113f0a708ab02ff46131419b968651194442dc
Contents?: true
Size: 1.52 KB
Versions: 4
Compression:
Stored size: 1.52 KB
Contents
# FGDC <<Class>> EntityOverview # FGDC CSDGM writer output in XML # History: # Stan Smith 2018-01-22 original script module ADIWG module Mdtranslator module Writers module Fgdc class EntityOverview def initialize(xml, hResponseObj) @xml = xml @hResponseObj = hResponseObj end def writeXML(hEntity) # entity overview 5.2.1 (eaover) - entity and attribute overview (required) # <- entity.definition unless hEntity[:entityDefinition].nil? @xml.tag!('eaover', hEntity[:entityDefinition]) end if hEntity[:entityDefinition].nil? @hResponseObj[:writerPass] = false @hResponseObj[:writerMessages] << 'Entity Attribute Overview missing definition' end # entity overview 5.2.2 (eadetcit) - entity and attribute detail citation [] # <- entity.entityReferences[] hEntity[:entityReferences].each do |hCitation| unless hCitation.empty? @xml.tag!('eadetcit', hCitation[:title]) end end if hEntity[:entityReferences].empty? && @hResponseObj[:writerShowTags] @xml.tag!('eadetcit') end end # writeXML end # EntityOverview end end end end
Version data entries
4 entries across 4 versions & 1 rubygems