init¶
- isHed3Schema(xmlData)¶
Determine whether a HED schema is based on the HED 3 spec.
- Arguments:
xmlData (object) – HED XML data.
- Returns:
boolean – Whether the schema is a HED 3 schema.
- buildSchemaAttributesObject(xmlData)¶
Build a schema attributes object from schema XML data.
- Arguments:
xmlData (object) – The schema XML data.
- Returns:
SchemaAttributes|SchemaEntries – The schema attributes object.
- buildSchemaObject(xmlData)¶
Build a single schema container object from a base schema version or path description.
- Arguments:
xmlData (object) – The schema’s XML data
- Returns:
Schema – The HED schema object.
- init.buildSchema(schemaDef, useFallback)¶
Note
Deprecated.
Build a schema collection object from a schema specification.
- Arguments:
schemaDef (Object) – The description of which schemas to use.
useFallback (boolean) – Whether to use a bundled fallback schema if the requested schema cannot be loaded.
- Returns:
Promise.<never>|Promise.<Schemas> – The schema container object or an error.
- buildSchemas(schemaSpecs)¶
Build a schema collection object from a schema specification.
- Arguments:
schemaSpecs (Map.<string, SchemaSpec>|SchemasSpec) – The description of which schemas to use.
- Returns: