Class: Schemas

Schemas(schemas)

The collection of active HED schemas.

Constructor

new Schemas(schemas)

Constructor.
Parameters:
Name Type Description
schemas Schema | Map.<string, Schema> The imported HED schemas.
Source:

Classes

Schemas

Members

baseSchema

The base schema, i.e. the schema with no prefix, if one is defined.
Source:

schemas :Map.<string, Schema>

The imported HED schemas. The empty string key ("") corresponds to the schema with no prefix, while other keys correspond to the respective prefixes.
Type:
Source:

Methods

getSchema(schemaName) → {Schema}

Return the schema with the given prefix.
Parameters:
Name Type Description
schemaName string A prefix in the schema set.
Source:
Returns:
The schema object corresponding to that prefix.
Type
Schema