Class: SchemaEntryManager

SchemaEntryManager(definitions)

A manager of SchemaEntry objects.

Constructor

new SchemaEntryManager(definitions)

Constructor.
Parameters:
Name Type Description
definitions Map.<string, T> A map of schema entry definitions.
Source:

Classes

SchemaEntryManager

Members

_definitions :Map.<string, T>

The definitions managed by this entry manager.
Type:
  • Map.<string, T>
Source:

length

The number of entries in this collection.
Source:

Methods

filter(fn) → {Map}

Filter the map underlying this manager.
Parameters:
Name Type Description
fn function ([string, T]): boolean specifying the filtering function.
Source:
Returns:
- string->T representing a collection of entries with that attribute.
Type
Map

getEntriesWithBooleanAttribute(booleanAttributeName) → {Map}

Get a collection of entries with the given boolean attribute.
Parameters:
Name Type Description
booleanAttributeName string The name of boolean attribute to filter on.
Source:
Returns:
- string->T representing a collection of entries with that attribute.
Type
Map

getEntry(name) → {T}

Get the entry with the given name.
Parameters:
Name Type Description
name string The name of the entry to retrieve.
Source:
Returns:
- The entry with that name.
Type
T

hasEntry(name) → {boolean}

Determine whether the entry with the given name exists.
Parameters:
Name Type Description
name string The name of the entry.
Source:
Returns:
Whether the entry exists.
Type
boolean

keys() → {IterableIterator}

Iterator over the entry manager's keys.
Source:
Returns:
- [string]
Type
IterableIterator

values() → {IterableIterator}

Iterator over the entry manager's keys.
Source:
Returns:
- [T]
Type
IterableIterator

(protected, static) _filterDefinitionMap(definitionMap, fn) → {Map}

Filter a definition map.
Parameters:
Name Type Description
definitionMap Map.<string, T> The definition map.
fn function ([string, T]):boolean specifying the filtering function.
Source:
Returns:
- string->T representing the filtered definitions.
Type
Map