lib/ess/element.rb
##
# Objects of this class represent the various tags available in ESS
#
Objects of this class represent the various tags available in ESS
Objects of this class represent the various tags available in ESS
def check_child_tag_cardinality tag_name, max_occurs
        if max_occurs != :inf
          if child_tags.include?(tag_name)
            if child_tags[tag_name].length > 0
              if child_tags[tag_name].length > max_occurs.to_i
                raise Validation::ValidationError, "< #{tag_name} > can occur maximally #{max_occurs.to_i} times in < #{@name} >"
              end
            end
          end
        end
      end
def check_child_tag_cardinality tag_name , max_occurs if max_occurs != :inf if child_tags . include? ( tag_name ) if child_tags [ tag_name ] . length > 0 if child_tags [ tag_name ] . length > max_occurs . to_i raise Validation :: ValidationError , "< #{tag_name} > can occur maximally #{max_occurs.to_i} times in < #{@name} >" end end end end end
Objects of this class represent the various tags available in ESS
Objects of this class represent the various tags available in ESS
tag_name
<not_specific>
max_occurs
<not_specific>