The common root node of the elements in this selection.
Returns a constructor for this selection.
Exports the selection as an array of selections of one element.
View this selection as a different type. This method can be used to extend functionality for non-standard Gedcom files.
The class adapter
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.
The right hand side selection
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.
The right hand side selection
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).
The selection to compare it against
Filter nodes from the selection based on a predicate.
Filter lifted nodes from the selection based on a predicate. The argument is a selection of one node.
The filtering predicate
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.
Optionally filter the results by their Gedcom tag
Optionally filter the result by their pointer value
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.
Optionally filter the results by their Gedcom tag
Optionally filter the result by their pointer value
The adapter class, see as
Returns an array of TreeNode.pointer.
Wraps the value of rootNode in SelectionGedcom. The selection will contain exactly one node.
Returns a sorted selection, with respect to the comparator. The default comparator relies on the TreeNode.indexSource attribute.
Returns an array of TreeNode.tag.
Returns an array of TreeNode.value.
Calls value and filters out null
values.
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.
The previous selection, required to inherit the reference to the root
The nodes to be included in the selection
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.
The previous selection, required to inherit the reference to the root
The nodes to be included in the selection
The adapter class, see as
The note(s) associated to this attribute.
Tag | NOTE |
---|---|
Multiplicity | * |
Generated using TypeDoc
The number of nodes in the selection.