UNPKG

read-gedcom

Version:
42 lines 2.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SelectionGedcom = void 0; const internal_1 = require("./internal"); /** * The root of a Gedcom file. * Remark that the actual root is a pseudo node, and hence will store <code>null</code> for the attributes {@link tag}, {@link pointer} and {@link value}. */ class SelectionGedcom extends internal_1.SelectionAny { getHeader() { return this.get("HEAD" /* Tag.Header */, null, internal_1.SelectionHeader); } /** * @deprecated This method does the same thing as {@link get}; use that one instead */ getRecord(tag, pointer, SelectionAdapter) { return this.get(tag, pointer, SelectionAdapter); } getSubmitterRecord(pointer) { return this.get("SUBM" /* Tag.Submitter */, pointer !== null && pointer !== void 0 ? pointer : null, internal_1.SelectionSubmitterRecord); } getIndividualRecord(pointer) { return this.get("INDI" /* Tag.Individual */, pointer !== null && pointer !== void 0 ? pointer : null, internal_1.SelectionIndividualRecord); } getFamilyRecord(pointer) { return this.get("FAM" /* Tag.Family */, pointer !== null && pointer !== void 0 ? pointer : null, internal_1.SelectionFamilyRecord); } getMultimediaRecord(pointer) { return this.get("OBJE" /* Tag.Object */, pointer !== null && pointer !== void 0 ? pointer : null, internal_1.SelectionMultimediaRecord); } getNoteRecord(pointer) { return this.get("NOTE" /* Tag.Note */, pointer !== null && pointer !== void 0 ? pointer : null, internal_1.SelectionNoteRecord); } getSourceRecord(pointer) { return this.get("SOUR" /* Tag.Source */, pointer !== null && pointer !== void 0 ? pointer : null, internal_1.SelectionSourceRecord); } getRepositoryRecord(pointer) { return this.get("REPO" /* Tag.Repository */, pointer !== null && pointer !== void 0 ? pointer : null, internal_1.SelectionRepositoryRecord); } } exports.SelectionGedcom = SelectionGedcom; //# sourceMappingURL=SelectionGedcom.js.map