HED JavaScript Library
    Preparing search index...
    Index

    Constructors

    Properties

    definitions: Map<any, any>

    Definitions for this manager (string --> Definition).

    Methods

    • Evaluate the definition based on a parsed HED tag.

      Parameters

      • tag: ParsedHedTag

        The tag to evaluate against the definitions.

      • hedSchemas: Schemas

        The schemas to be used to assist in the evaluation.

      • placeholderAllowed: boolean

        If true then placeholder is allowed in the def tag.

      Returns any[]

      • Returns [string, Issue[]] with definition contents for this tag and any issues.

      Note: If the tag is not a Def or Def-expand, this returns null for the string and [] for the issues.

    • Find the definition associated with a tag, if any

      Parameters

      • tag: ParsedHedTag

        The parsed HEd tag to be checked.

      Returns any[]

      -Returns [Definition, Issue[]]. If no match is found, the first element is null.

    • Check the Def tags in a HED string for missing or incorrectly used Def-expand tags.

      Parameters

      • hedString: ParsedHedString

        A parsed HED string to be checked.

      • hedSchemas: Schemas

        Schemas to validate against.

      • placeholderAllowed: boolean

        If true then placeholder is allowed in the def tag.

      Returns Issue[]

      • If there is no matching definition or definition applied incorrectly.
    • Check the Def tags in a HED string for missing or incorrectly used Def tags.

      Parameters

      • hedString: ParsedHedString

        A parsed HED string to be checked.

      • hedSchemas: Schemas

        Schemas to validate against.

      • placeholderAllowed: boolean

        If true then placeholder is allowed in the def tag.

      Returns Issue[]

      • If there is no matching definition or definition applied incorrectly.
    • Create a list of Definition objects from a list of strings.

      Parameters

      • defStrings: string[]

        A list of string definitions.

      • hedSchemas: Schemas

        The HED schemas to use in creation.

      Returns any[]

      • Returns [Definition[], Issue[]] with a definition list and any issues found.