Class: Copland::Configuration::YAML::SchemaParser

Inherits:
Object
  • Object
show all
Includes:
TypeValidator
Defined in:
lib/copland/configuration/yaml/schema.rb

Overview

This is the delegate assigned with the responsibility for processing schema elements.

Constant Summary collapse

VALID_KEYS =

This is the list of keys recognized by this processor.

[ "name", "class", "description", "definition", "type",
"required", "extend" ]
REQUIRED_KEYS =

This is the list of keys required by this processor.

[]

Instance Method Summary collapse

Methods included from TypeValidator

#ensure_element_type, #validate_elements

Instance Method Details

#process(point, schema) ⇒ Object

This is invoked when a schema element has been detected and needs to be processed. The given point is either a configuration point or a service point. The schema is returned.



57
58
59
# File 'lib/copland/configuration/yaml/schema.rb', line 57

def process( point, schema )
  process_schema point, schema, "schema://"
end