12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# File 'lib/adiwg/mdtranslator/readers/adiwgJson/modules_0.9.0/module_timeInstant.rb', line 12
def self.unpack(hTimeInst)
intMetadataClass = InternalMetadata.new
intTimeInst = intMetadataClass.newTimeInstant
if hTimeInst.has_key?('id')
s = hTimeInst['id']
if s != ''
intTimeInst[:timeID] = s
end
end
if hTimeInst.has_key?('description')
s = hTimeInst['description']
if s != ''
intTimeInst[:description] = s
end
end
if hTimeInst.has_key?('timePosition')
s = hTimeInst['timePosition']
if s != ''
intTimeInst[:timePosition] = Adiwg_DateTime.unpack(s)
end
end
return intTimeInst
end
|