HED JavaScript Library
    Preparing search index...
    Index

    Constructors

    Properties

    _versionDefinitions: {
        categoryProperties: any;
        roleProperties: any;
        typeProperties: any;
    }
    attributes: Map<string, SchemaAttribute>
    properties: Map<string, SchemaProperty>
    rootElement: any

    The root XML element.

    The schema's tags.

    The schema's unit classes.

    The schema's unit modifiers.

    The schema's value classes.

    Methods

    • Parameters

      • elements: any
      • namer: any

      Returns Map<any, any>[]

    • Parameters

      • category: any

      Returns Map<any, any>[]

    • Parameters

      • parentElement: any
      • elementName: string = 'node'
      • excludeTakeValueTags: boolean = true

      Returns any

    • Retrieve all the tags in the schema.

      Parameters

      • tagElementName: string = 'node'

        The name of the tag element.

      Returns Map<any, string>

      The tag names and XML elements.

    • Parameters

      • elementName: string = 'node'
      • parentElement: any = ...

      Returns any[]

    • Extract the name of an XML element.

      NOTE: This method cannot be merged into getElementTagValue because it is used as a first-class object.

      Parameters

      • element: any

        An XML element.

      Returns string

      The name of the element.

    • Extract a value from an XML element.

      Parameters

      • element: any

        An XML element.

      • tagName: string

        The tag value to extract.

      Returns string

      The value of the tag in the element.