Sha256: 2cb86982fb4f4d468bef5e06526cf162aa2d22fc6cc56b6cb3536abfd7357afd

Contents?: true

Size: 1.68 KB

Versions: 49

Compression:

Stored size: 1.68 KB

Contents

# HTML writer
# security constraint

# History:
#  Stan Smith 2017-03-31 refactored for mdTranslator 2.0
# 	Stan Smith 2015-03-25 original script

module ADIWG
   module Mdtranslator
      module Writers
         module Html

            class Html_SecurityConstraint

               def initialize(html)
                  @html = html
               end

               def writeHtml(hSecCon)

                  # security constraint - classification code {classification} (required)
                  unless hSecCon[:classCode].nil?
                     @html.em('Classification: ')
                     @html.text!(hSecCon[:classCode])
                     @html.br
                  end

                  # security constraint - classification system
                  unless hSecCon[:classSystem].nil?
                     @html.em('Classification System: ')
                     @html.text!(hSecCon[:classSystem])
                     @html.br
                  end

                  # security constraint - user note
                  unless hSecCon[:userNote].nil?
                     @html.em('User Note:')
                     @html.section(:class => 'block') do
                        @html.text!(hSecCon[:userNote])
                     end
                  end

                  # security constraint - handling instructions
                  unless hSecCon[:handling].nil?
                     @html.em('handling Instructions:')
                     @html.section(:class => 'block') do
                        @html.text!(hSecCon[:handling])
                     end
                  end

               end # writeHtml
            end # Html_SecurityConstraint

         end
      end
   end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.19.0.pre.beta.31 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.19.0.pre.beta.30 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.19.0.pre.beta.29 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.19.0.pre.beta.28 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.19.0.pre.beta.27 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.19.0.pre.beta.26 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.19.0.pre.beta.13 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.19.0.pre.beta.12 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.19.0.pre.beta.11 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.19.0.pre.beta.10 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.19.0.pre.beta.9 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.19.0.pre.beta.8 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.19.0.pre.beta.7 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.18.4 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.18.2 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.18.1 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.18.0 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.18.0rc9 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.18.0rc8 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.18.0rc7 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb