Class: JSI::MetaSchemaNode::Conf
- Inherits:
-
Base::Conf
- Object
- Base::Conf
- JSI::MetaSchemaNode::Conf
- Defined in:
- lib/jsi/metaschema_node.rb
Overview
Base::Conf with additional configuration for MetaSchemaNode.
Instance Attribute Summary collapse
-
#bootstrap_registry ⇒ Registry?
Default: nil.
- #dialect ⇒ Schema::Dialect
-
#metaschema_root_ref ⇒ Addressable::URI
URI reference to the root of the meta-schema.
-
#root_schema_ref ⇒ Addressable::URI
URI reference to the schema describing the root of the jsi_document.
Attributes inherited from Base::Conf
#after_initialize, #application_collect_evaluated_validate, #child_as_jsi, #child_use_default, #registry, #reinstantiate_nonschemas, #root_uri, #to_immutable
Instance Method Summary collapse
-
#initialize(dialect:, metaschema_root_ref: '#', root_schema_ref: metaschema_root_ref, registry: nil, is_metaschema: DEFAULT_IS_METASCHEMA, **kw) ⇒ Conf
constructor
A new instance of Conf.
Constructor Details
#initialize(dialect:, metaschema_root_ref: '#', root_schema_ref: metaschema_root_ref, registry: nil, is_metaschema: DEFAULT_IS_METASCHEMA, **kw) ⇒ Conf
Returns a new instance of Conf.
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/jsi/metaschema_node.rb', line 66 def initialize( dialect: , metaschema_root_ref: '#', root_schema_ref: , registry: nil, # overrides Base::Conf default value JSI.registry is_metaschema: DEFAULT_IS_METASCHEMA, **kw ) super( dialect: dialect, metaschema_root_ref: Util.uri(, nnil: true), root_schema_ref: Util.uri(root_schema_ref, nnil: true), registry: registry, is_metaschema: , **kw, ) end |
Instance Attribute Details
#bootstrap_registry ⇒ Registry?
Default: nil
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/jsi/metaschema_node.rb', line 65 class Conf < Base::Conf def initialize( dialect: , metaschema_root_ref: '#', root_schema_ref: , registry: nil, # overrides Base::Conf default value JSI.registry is_metaschema: DEFAULT_IS_METASCHEMA, **kw ) super( dialect: dialect, metaschema_root_ref: Util.uri(, nnil: true), root_schema_ref: Util.uri(root_schema_ref, nnil: true), registry: registry, is_metaschema: , **kw, ) end end |
#dialect ⇒ Schema::Dialect
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/jsi/metaschema_node.rb', line 65 class Conf < Base::Conf def initialize( dialect: , metaschema_root_ref: '#', root_schema_ref: , registry: nil, # overrides Base::Conf default value JSI.registry is_metaschema: DEFAULT_IS_METASCHEMA, **kw ) super( dialect: dialect, metaschema_root_ref: Util.uri(, nnil: true), root_schema_ref: Util.uri(root_schema_ref, nnil: true), registry: registry, is_metaschema: , **kw, ) end end |
#metaschema_root_ref ⇒ Addressable::URI
URI reference to the root of the meta-schema.
Default: "#" resolves to the root of the jsi_document.
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/jsi/metaschema_node.rb', line 65 class Conf < Base::Conf def initialize( dialect: , metaschema_root_ref: '#', root_schema_ref: , registry: nil, # overrides Base::Conf default value JSI.registry is_metaschema: DEFAULT_IS_METASCHEMA, **kw ) super( dialect: dialect, metaschema_root_ref: Util.uri(, nnil: true), root_schema_ref: Util.uri(root_schema_ref, nnil: true), registry: registry, is_metaschema: , **kw, ) end end |
#root_schema_ref ⇒ Addressable::URI
URI reference to the schema describing the root of the jsi_document. When schemas of the meta-schema are in multiple documents, this describes the roots of all instantiated documents.
Default: metaschema_root_ref value, i.e. the document root is a schema.
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/jsi/metaschema_node.rb', line 65 class Conf < Base::Conf def initialize( dialect: , metaschema_root_ref: '#', root_schema_ref: , registry: nil, # overrides Base::Conf default value JSI.registry is_metaschema: DEFAULT_IS_METASCHEMA, **kw ) super( dialect: dialect, metaschema_root_ref: Util.uri(, nnil: true), root_schema_ref: Util.uri(root_schema_ref, nnil: true), registry: registry, is_metaschema: , **kw, ) end end |