Module: Chemicalml::Cml::Schema3

Extended by:
VersionedParser
Defined in:
lib/chemicalml/cml/schema3.rb,
lib/chemicalml/cml/schema3/configuration.rb

Overview

Schema 3 wire classes. Each is a Lutaml::Model::Serializable subclass that includes the shared declaration mixin from Chemicalml::Cml::Base::* and Chemicalml::Cml::Visitable.

The full element set is generated in-place from Chemicalml::Cml::Elements::ALL — adding a new CML element means adding one entry there, not 35+ boilerplate files here. Schema-3-specific deviations live in additional Base::Schema3Only::* modules included by the relevant class via Base::* mixins.

Defined Under Namespace

Modules: Configuration

Constant Summary collapse

SCHEMA =
Chemicalml::Schema::Registry.lookup(:schema3)

Class Method Summary collapse

Methods included from VersionedParser

configuration, document_class, parse

Class Method Details

.ensure_registered!Object



35
36
37
# File 'lib/chemicalml/cml/schema3.rb', line 35

def self.ensure_registered!
  Configuration.ensure_registered!
end

.schemaObject



31
32
33
# File 'lib/chemicalml/cml/schema3.rb', line 31

def self.schema
  SCHEMA
end