Class: Dcc::Validate::Schematron::Rules::UnitFormatCheck
- Inherits:
-
Base
- Object
- Dcc::Validate::Schematron::Rule
- Base
- Dcc::Validate::Schematron::Rules::UnitFormatCheck
- Defined in:
- lib/dcc/validate/schematron/rules/unit_format_check.rb
Overview
Validates that SI unit expressions contain no whitespace and
that unitXMLList element count matches valueXMLList count.
Instance Method Summary collapse
Methods inherited from Dcc::Validate::Schematron::Rule
Instance Method Details
#check_on(dcc) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/dcc/validate/schematron/rules/unit_format_check.rb', line 10 def check_on(dcc) issues = [] return issues unless dcc.is_a?(::Lutaml::Model::Serializable) walk(dcc, issues, ::Set.new) issues end |