HED JavaScript Library
    Preparing search index...

    Class SchemaEntryManager<T>

    A manager of SchemaEntry objects.

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _definitions: Map<string, T>

    The definitions managed by this entry manager.

    Accessors

    • get length(): number

      The number of entries in this collection.

      Returns number

      The number of entries in this collection.

    Methods

    • Protected

      Memoize a property.

      Type Parameters

      • T

      Parameters

      • propertyName: string

        The property name.

      • valueComputer: () => T

        A function to compute the property's value.

      Returns T

      The computed value.

    • Iterator over the entry manager's entries.

      Type Parameters

      • T

      Returns IterableIterator<any, any, any>

      • [string, T]
    • Filter the map underlying this manager.

      Parameters

      • fn: Function

        ([string, T]): boolean specifying the filtering function.

      Returns Map<any, any>

      • string->T representing a collection of entries with that attribute.
    • Get a collection of entries with the given boolean attribute.

      Parameters

      • booleanAttributeName: string

        The name of boolean attribute to filter on.

      Returns Map<any, any>

      • string->T representing a collection of entries with that attribute.
    • Get the entry with the given name.

      Parameters

      • name: string

        The name of the entry to retrieve.

      Returns T

      • The entry with that name.
    • Determine whether the entry with the given name exists.

      Parameters

      • name: string

        The name of the entry.

      Returns boolean

      Whether the entry exists.

    • Iterator over the entry manager's keys.

      Returns IterableIterator<any, any, any>

      • [string]
    • Iterator over the entry manager's keys.

      Returns IterableIterator<any, any, any>

      • [T]
    • Protected

      Filter a definition map.

      Type Parameters

      • T

      Parameters

      • definitionMap: Map<string, T>

        The definition map.

      • fn: Function

        ([string, T]):boolean specifying the filtering function.

      Returns Map<any, any>

      • string->T representing the filtered definitions.