hed-typescript API
    Preparing search index...

    Class defaultAbstract

    Hierarchy (View Summary)

    Index
    • Build a schema collection object from a schema specification.

      Parameters

      • schemaSpecs: SchemasSpec

        The description of which schemas to use.

      Returns Promise<HedSchemas>

      The schema container object and any issues found.

      If the schema specification is invalid or schemas cannot be built.

    • Build HED schemas from a version specification string.

      Parameters

      • OptionalhedVersionString: string

        The HED version specification string (can contain comma-separated versions).

      Returns Promise<HedSchemas>

      A Promise that resolves to the built schemas.

      If the schema specification is invalid or schemas cannot be built.

    • Retrieve the contents of a bundled schema.

      Parameters

      • schemaDef: SchemaSpec

        The description of which schema to use.

      Returns Promise<string>

      The raw schema XML data.

      If the schema could not be loaded.

    • Determine whether this validator bundles a particular schema.

      Parameters

      • schemaDef: SchemaSpec

        The description of which schema to use.

      Returns boolean

      Whether this validator bundles a particular schema.

      If the schema could not be loaded.

    • Actually load the schema XML file.

      Parameters

      • xmlDataPromise: Promise<string>

        The Promise containing the unparsed XML data.

      • issueCode: string

        The issue code.

      • issueArgs: IssueParameters

        The issue arguments passed from the calling function.

      Returns Promise<HedSchemaXMLObject>

      The parsed schema XML data.

      If the schema could not be loaded.