Sha256: a31aa5874dc90b0256eb20a0f5597beb73df3ad1f2302b88441e010d8c4ef31a

Contents?: true

Size: 469 Bytes

Versions: 7

Compression:

Stored size: 469 Bytes

Contents

# ISO <<CodeLists>> gmd:MD_ObligationCode
# enumeration

# from http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml

# History:
# 	Stan Smith 2013-10-21 original script

class MD_ObligationCode
	def initialize(xml)
		@xml = xml
	end

	def writeXML(codeName)
		case(codeName)
			when 'mandatory',
				'optional',
				'conditional'
			else
				codeName = 'INVALID OBLIGATION'
		end

		# write xml
		@xml.tag!('gmd:MD_ObligationCode',codeName)
	end

end





Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
adiwg-mdtranslator-0.10.2 lib/adiwg/mdtranslator/writers/iso/codelists/code_obligation.rb
adiwg-mdtranslator-0.9.0 lib/adiwg/mdtranslator/writers/iso19115_2/codelists/code_obligation.rb
adiwg-mdtranslator-0.8.6 lib/adiwg/mdtranslator/writers/iso19115_2/codelists/code_obligation.rb
adiwg-mdtranslator-0.8.5 lib/adiwg/mdtranslator/writers/iso19115_2/codelists/code_obligation.rb
adiwg-mdtranslator-0.8.2 lib/adiwg/mdtranslator/writers/iso19115_2/codelists/code_obligation.rb
adiwg-mdtranslator-0.8.1 lib/adiwg/mdtranslator/writers/iso19115_2/codelists/code_obligation.rb
adiwg-mdtranslator-0.8.0 lib/adiwg/mdtranslator/writers/iso19115_2/codelists/code_obligation.rb