-
Notifications
You must be signed in to change notification settings - Fork 3
/
SelectionHeader.ts
43 lines (32 loc) · 1.07 KB
/
SelectionHeader.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
import { SelectionGedcomFile, SelectionCharacterEncoding, SelectionGedcomSource, SelectionDateExact, SelectionSubmitterReference, SelectionAny } from './internal';
import { Tag } from '../tag';
import { SelectionWithNoteMixin } from './mixin';
export class SelectionHeader extends SelectionWithNoteMixin(SelectionAny) {
getGedcomFile() {
return this.get(Tag.Gedcom, null, SelectionGedcomFile);
}
getCharacterEncoding(): SelectionCharacterEncoding {
return this.get(Tag.Character);
}
getSourceSystem() {
return this.get(Tag.Source, null, SelectionGedcomSource);
}
getDestinationSystem() {
return this.get(Tag.Destination);
}
getFileCreationDate() {
return this.get(Tag.Date, null, SelectionDateExact);
}
getLanguage() {
return this.get(Tag.Language);
}
getSubmitterReference() {
return this.get(Tag.Submitter, null, SelectionSubmitterReference);
}
getFilename() {
return this.get(Tag.File);
}
getCopyright() {
return this.get(Tag.Copyright);
}
}