Sha256: bc680fbd3276dd0287a5e395b9cf2681072e66b1281886939dd1a7de43ac4d03
Contents?: true
Size: 867 Bytes
Versions: 1
Compression:
Stored size: 867 Bytes
Contents
# unpack an data entity index # Reader - ADIwg JSON V1 to internal data structure # History: # Stan Smith 2013-12-01 original script module Md_EntityIndex def self.unpack(hIndex) # instance classes needed in script intMetadataClass = InternalMetadata.new intIndex = intMetadataClass.newEntityIndex # entity index - code name if hIndex.has_key?('codeName') s = hIndex['codeName'] if s != '' intIndex[:indexCode] = s end end # entity index - allow duplicates if hIndex.has_key?('allowDuplicates') s = hIndex['allowDuplicates'] if s != '' intIndex[:duplicate] = s end end # entity index - attribute list if hIndex.has_key?('attributeCodeName') aKeyAttributes = hIndex['attributeCodeName'] unless aKeyAttributes.empty? intIndex[:attributeNames] = aKeyAttributes end end return intIndex end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adiwg-mdtranslator-0.10.2 | lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_entityIndex.rb |