read-gedcom
Version:
Gedcom file reader
60 lines • 2.54 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SelectionFamilyRecord = void 0;
const mixin_1 = require("./mixin");
const internal_1 = require("./internal");
const base_1 = require("./base");
class SelectionFamilyRecord extends (0, mixin_1.SelectionWithMultimediaMixin)((0, mixin_1.SelectionWithNoteSourceCitationMixin)(base_1.SelectionRecord)) {
/* Events */
getEventAnnulment() {
return this.get("ANUL" /* Tag.Annulment */, null, internal_1.SelectionFamilyEvent);
}
getEventCensus() {
return this.get("CENS" /* Tag.Census */, null, internal_1.SelectionFamilyEvent);
}
getEventDivorce() {
return this.get("DIV" /* Tag.Divorce */, null, internal_1.SelectionFamilyEvent);
}
getEventDivorceFiled() {
return this.get("DIVF" /* Tag.DivorceFiled */, null, internal_1.SelectionFamilyEvent);
}
getEventEngagement() {
return this.get("ENGA" /* Tag.Engagement */, null, internal_1.SelectionFamilyEvent);
}
getEventMarriageBann() {
return this.get("MARB" /* Tag.MarriageBan */, null, internal_1.SelectionFamilyEvent);
}
getEventMarriageContract() {
return this.get("MARC" /* Tag.MarriageContract */, null, internal_1.SelectionFamilyEvent);
}
getEventMarriage() {
return this.get("MARR" /* Tag.Marriage */, null, internal_1.SelectionFamilyEvent);
}
getEventMarriageLicense() {
return this.get("MARL" /* Tag.MarriageLicense */, null, internal_1.SelectionFamilyEvent);
}
getEventMarriageSettlement() {
return this.get("MARS" /* Tag.MarriageSettlement */, null, internal_1.SelectionFamilyEvent);
}
getEventResidence() {
return this.get("RESI" /* Tag.Residence */, null, internal_1.SelectionFamilyEvent); // Residence is normally an attribute
}
getEventOther() {
return this.get("EVEN" /* Tag.Event */, null, internal_1.SelectionFamilyEvent);
}
/* End events */
getHusband() {
return this.get("HUSB" /* Tag.Husband */, null, internal_1.SelectionIndividualReference);
}
getWife() {
return this.get("WIFE" /* Tag.Wife */, null, internal_1.SelectionIndividualReference);
}
getChild() {
return this.get("CHIL" /* Tag.Child */, null, internal_1.SelectionIndividualReference);
}
getChildrenCount() {
return this.get("NCHI" /* Tag.ChildrenCount */);
}
}
exports.SelectionFamilyRecord = SelectionFamilyRecord;
//# sourceMappingURL=SelectionFamilyRecord.js.map