hed-typescript API
    Preparing search index...

    A schema attribute.

    Hierarchy (View Summary)

    Index
    • Constructor.

      Parameters

      • name: string

        The name of the schema attribute.

      • description: string | undefined

        The description of the schema attribute.

      • properties: Set<default>

        The properties assigned to this schema attribute.

      • recursive: boolean

        Whether this attribute is recursive.

      Returns default

    _properties: Set<default>

    The properties assigned to this schema attribute.

    _recursive: boolean

    Whether this attribute is recursive.

    ALWAYS_RECURSIVE: Set<string> = ...

    The set of all attribute names which are always recursive.

    • get description(): string | undefined

      The description of this schema entry.

      Returns string | undefined

    • Determine if this schema attribute is equivalent to another schema attribute.

      Parameters

      • other: unknown

        A schema attribute to compare with this one.

      Returns boolean

      Whether the other attribute is equivalent to this schema attribute.

      Schema attributes are equivalent if they have the same name, description, and property names. Properties are compared by name, so attributes of two separately loaded schemas can be compared.

    • Whether this schema entry has this attribute (by name).

      This method is a stub to be overridden in SchemaEntryWithAttributes.

      Parameters

      • attributeName: string

        The attribute to check for.

      Returns boolean

      Whether this schema entry has this attribute.