Module: Chemicalml::Convention::UnitTypeDictionary

Extended by:
Base
Defined in:
lib/chemicalml/convention/unit_type_dictionary.rb,
lib/chemicalml/convention/unit_type_dictionary/constraints.rb,
lib/chemicalml/convention/unit_type_dictionary/constraints/unit_type_must_have_id_and_name.rb

Overview

The unitType-dictionary convention. Constraints based on http://www.xml-cml.org/convention/unitType-dictionary (archived in reference-docs/conventions/unitType-dictionary.md).

Defined Under Namespace

Modules: Constraints

Constant Summary collapse

QNAME =
"convention:unitType-dictionary".freeze
NAMESPACE_URI =
"#{Chemicalml::Convention::CONVENTION_NAMESPACE}unitType-dictionary".freeze

Class Method Summary collapse

Methods included from Base

constraint_count, constraints, namespace_uri, qname, register, reset_constraints!, validate

Class Method Details

.namespace_uriObject



20
21
22
# File 'lib/chemicalml/convention/unit_type_dictionary.rb', line 20

def self.namespace_uri
  NAMESPACE_URI
end

.qnameObject



16
17
18
# File 'lib/chemicalml/convention/unit_type_dictionary.rb', line 16

def self.qname
  QNAME
end