-
Notifications
You must be signed in to change notification settings - Fork 3
/
SelectionFamilyRecord.ts
75 lines (56 loc) · 2.02 KB
/
SelectionFamilyRecord.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import { SelectionWithMultimediaMixin, SelectionWithNoteSourceCitationMixin } from './mixin';
import { SelectionIndividualReference, SelectionFamilyEvent } from './internal';
import { Tag } from '../tag';
import { SelectionRecord } from './base';
export class SelectionFamilyRecord extends SelectionWithMultimediaMixin(SelectionWithNoteSourceCitationMixin(SelectionRecord)) {
/* Events */
getEventAnnulment() {
return this.get(Tag.Annulment, null, SelectionFamilyEvent);
}
getEventCensus() {
return this.get(Tag.Census, null, SelectionFamilyEvent);
}
getEventDivorce() {
return this.get(Tag.Divorce, null, SelectionFamilyEvent);
}
getEventDivorceFiled() {
return this.get(Tag.DivorceFiled, null, SelectionFamilyEvent);
}
getEventEngagement() {
return this.get(Tag.Engagement, null, SelectionFamilyEvent);
}
getEventMarriageBann() {
return this.get(Tag.MarriageBan, null, SelectionFamilyEvent);
}
getEventMarriageContract() {
return this.get(Tag.MarriageContract, null, SelectionFamilyEvent);
}
getEventMarriage() {
return this.get(Tag.Marriage, null, SelectionFamilyEvent);
}
getEventMarriageLicense() {
return this.get(Tag.MarriageLicense, null, SelectionFamilyEvent);
}
getEventMarriageSettlement() {
return this.get(Tag.MarriageSettlement, null, SelectionFamilyEvent);
}
getEventResidence() {
return this.get(Tag.Residence, null, SelectionFamilyEvent); // Residence is normally an attribute
}
getEventOther() {
return this.get(Tag.Event, null, SelectionFamilyEvent);
}
/* End events */
getHusband() {
return this.get(Tag.Husband, null, SelectionIndividualReference);
}
getWife() {
return this.get(Tag.Wife, null, SelectionIndividualReference);
}
getChild() {
return this.get(Tag.Child, null, SelectionIndividualReference);
}
getChildrenCount() {
return this.get(Tag.ChildrenCount);
}
}