Options
All
  • Public
  • Public/Protected
  • All
Menu

An individual record.

PointerYes
ValueNo

Hierarchy

  • SelectionRecord<this> & SelectionWithSourceCitationMixin & SelectionWithNoteMixin & SelectionWithMultimediaMixin
    • SelectionIndividualRecord

Index

Base Constructors

Base Properties

length: number

The number of nodes in the selection.

rootNode: TreeNodeRoot

The common root node of the elements in this selection.

Base Methods

  • Export the selection as an array of nodes. The inverse operation is of.

    Returns TreeNode[]

  • as<N>(Adapter: AnyConstructor<N>): N
  • View this selection as a different type. This method can be used to extend functionality for non-standard Gedcom files.

    Type Parameters

    Parameters

    • Adapter: AnyConstructor<N>

      The class adapter

    Returns N

  • Returns a concatenation of two selections. The right hand side selection should be a subtype of the left hand side's. The resulting selection will be the same type as the left hand side's.

    Type Parameters

    Parameters

    • other: N

      The right hand side selection

    Returns SelectionIndividualRecord

  • Returns a concatenation of two selections. The right hand side selection should be a subtype of the left hand side's. The resulting selection will be the same type as the left hand side's, with the elements of the right hand side's first.

    Type Parameters

    Parameters

    • other: N

      The right hand side selection

    Returns SelectionIndividualRecord

  • Checks whether two selections are equal. Note that the strategy used here is reference equality, hence for this method to return true, the nodes must be the same references (and in the same order).

    Parameters

    Returns boolean

  • get(tag?: null | string | string[], pointer?: null | string | string[]): SelectionAny
  • get<N>(tag: null | string | string[], pointer: null | string | string[], adapter: AnyConstructor<N>): N
  • Query the direct children of this node. It is possible to efficiently filter the results by tag and pointer. Leaving either or both of these parameter empty will result in a wildcard behavior (not filtering). In most cases this method is not useful as the functionality is already implemented in the subclasses through various more precise methods. Returns an array of children.

    Parameters

    • Optional tag: null | string | string[]

      Optionally filter the results by their Gedcom tag

    • Optional pointer: null | string | string[]

      Optionally filter the result by their pointer value

    Returns SelectionAny

  • Query the direct children of this node. It is possible to efficiently filter the results by tag and pointer. Leaving either or both of these parameter empty will result in a wildcard behavior (not filtering). In most cases this method is not useful as the functionality is already implemented in the subclasses through various more precise methods. Returns an array of children. Additionally, allows the specification of an adapter class.

    Type Parameters

    Parameters

    • tag: null | string | string[]

      Optionally filter the results by their Gedcom tag

    • pointer: null | string | string[]

      Optionally filter the result by their pointer value

    • adapter: AnyConstructor<N>

      The adapter class, see as

    Returns N

  • pointer(): (null | string)[]
  • tag(): (null | string)[]
  • Returns an array of TreeNode.tag.

    Returns (null | string)[]

  • value(): (null | string)[]
  • valueNonNull(): string[]
  • Calls value and filters out null values.

    Returns string[]

  • Create a selection from an array of nodes. It is highly recommended (but not required) for the nodes to be at the same logical level in the hierarchy. The inverse operation is array.

    Parameters

    • previous: SelectionAny

      The previous selection, required to inherit the reference to the root

    • nodes: TreeNode | TreeNode[]

      The nodes to be included in the selection

    Returns SelectionAny

  • Create a selection from an array of nodes. It is highly recommended (but not required) for the nodes to be at the same logical level in the hierarchy. The inverse operation is array.

    Type Parameters

    Parameters

    • previous: SelectionAny

      The previous selection, required to inherit the reference to the root

    • nodes: TreeNode | TreeNode[]

      The nodes to be included in the selection

    • Adapter: AnyConstructor<N>

      The adapter class, see as

    Returns N

Other Methods

Generated using TypeDoc