HED JavaScript Library
    Preparing search index...

    A parser for schema attributes.

    Hierarchy (View Summary)

    Index
    entryTypeMap: Map<string, any>

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

    properties: SchemaEntryManager<default>

    The schema properties.

    xmlCollection: HedSchemaXMLCollection

    The collection of XML data for a given prefix.

    • Protected

      Parse attributes in a specific schema.

      A property with a value (inLibrary) marks the library that declares the attribute and is not one of its properties. A property name the schema does not define is kept as an unregistered property of that name, so that two declarations are compared by the names as written (specification 3.1.2.4).

      Parameters

      • schemaXml: Object

        The XML for a specific schema.

      Returns void

    • Add a new entry while checking for duplicates.

      An existing declaration of the same name is kept if the new one is equivalent to it.

      Parameters

      • newEntryName: string

        The entry name.

      • newEntry: any

        The new entry object to add.

      Returns void

      If an entry of that name exists and is not equivalent.