HED JavaScript Library
    Preparing search index...

    Class default

    A parser for tags.

    Hierarchy (View Summary)

    Index
    • Constructor.

      Parameters

      • xmlCollection: HedSchemaXMLCollection

        A collection of XML data for a given prefix.

      • attributes: SchemaEntryManager<SchemaAttribute>

        The parsed schema attributes.

      • unitClasses: SchemaEntryManager<SchemaUnitClass>

        The parsed unit classes.

      • valueClasses: SchemaEntryManager<SchemaValueClass>

        The parsed value classes.

      Returns default

    attributes: default<SchemaAttribute>

    The schema attributes.

    entryTypeMap: Map<string, any>

    The map of names to entry objects for this entry type.

    schemaTags: Map<string, default>

    The tags of the schema being parsed, keyed by lowercase short name.

    unitClasses: SchemaEntryManager<SchemaUnitClass>

    The unit classes.

    valueClasses: SchemaEntryManager<SchemaValueClass>

    The value classes.

    xmlCollection: HedSchemaXMLCollection

    The collection of XML data for a given prefix.

    • Protected

      Give the elements of an unmerged library schema the inLibrary attribute that its merged file carries.

      An unmerged file holds only its library's elements, except that it may name an element of an earlier schema of the group again to extend it (a partner unit class it adds units to); such an element keeps its declarer.

      Parameters

      • schemaXml: Object

        The XML of the schema being parsed.

      • valueAttributeDefinitions: Map<string, Map<SchemaAttribute, string[]>>

        The value attributes by name, modified in place.

      • isDeclared: (arg0: string) => boolean

        Whether an earlier schema of the group declared the named element.

      Returns void

    • Protected

      Parse the attributes and descriptions of a list of elements.

      Parameters

      • elements: Iterable<Object, any, any>

        The XML elements.

      • namer: (arg0: Object) => string

        A function giving the name of an element.

      Returns [
          Map<string, Set<SchemaAttribute>>,
          Map<string, Map<SchemaAttribute, string[]>>,
          Map<string, string | undefined>,
      ]

      The boolean attributes, value attributes, and descriptions of the elements, keyed by name.

    • Protected

      Parse the attributes and descriptions of a list of definition elements.

      Parameters

      • definitionElements: Iterable<Object, any, any>

        The XML elements.

      Returns [
          Map<string, Set<SchemaAttribute>>,
          Map<string, Map<SchemaAttribute, string[]>>,
          Map<string, string | undefined>,
      ]

      The boolean attributes, value attributes, and descriptions of the elements, keyed by name.

    • Add a new tag while checking for duplicates.

      Override of SchemaEntryParser.addEntry to change the issue message.

      Parameters

      • shortTagName: string

        The short tag name.

      • newTag: default

        The new tag object to add.

      Returns void

      If a library redeclares a standard tag, or two schemas declare a tag incompatibly.