23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# File 'lib/adiwg/mdtranslator/writers/html/sections/html_coverageInfo.rb', line 23
def writeHtml(hCoverage)
identifierClass = Html_Identifier.new(@html)
attGroupClass = Html_AttributeGroup.new(@html)
imageClass = Html_ImageInfo.new(@html)
unless hCoverage[:coverageName].nil?
@html.em('Name: ')
@html.text!(hCoverage[:coverageName])
@html.br
end
unless hCoverage[:coverageDescription].nil?
@html.em('Description: ')
@html.section(:class => 'block') do
@html.text!(hCoverage[:coverageDescription])
end
end
unless hCoverage[:processingLevelCode].empty?
@html.details do
@html.summary('Processing Level Code', {'class' => 'h5'})
@html.section(:class => 'block') do
identifierClass.writeHtml(hCoverage[:processingLevelCode])
end
end
end
hCoverage[:attributeGroups].each do |hAttGroup|
@html.details do
@html.summary('Attribute Group', {'class' => 'h5'})
@html.section(:class => 'block') do
attGroupClass.writeHtml(hAttGroup)
end
end
end
unless hCoverage[:imageDescription].empty?
@html.details do
@html.summary('Image Description', {'class' => 'h5'})
@html.section(:class => 'block') do
imageClass.writeHtml(hCoverage[:imageDescription])
end
end
end
end
|