Class: Dcc::Validate::Schematron::Rules::UncertaintyConsistency

Inherits:
Base show all
Defined in:
lib/dcc/validate/schematron/rules/uncertainty_consistency.rb

Overview

Validates that for every si:realListXMLList paired with an si:expandedUncXMLList, the count of values matches the count of uncertainty entries.

Instance Method Summary collapse

Methods inherited from Dcc::Validate::Schematron::Rule

#code, #severity

Instance Method Details

#check_on(dcc) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/dcc/validate/schematron/rules/uncertainty_consistency.rb', line 11

def check_on(dcc)
  issues = []
  return issues unless dcc.is_a?(::Lutaml::Model::Serializable)

  walk(dcc, issues, ::Set.new)
  issues
end