UNPKG

jspurefix

Version:
21 lines (18 loc) 735 B
import { ContainedFieldSet } from '../contained' import { ContainedSetType } from '../dict-primitive' import { SimpleFieldDefinition } from './simple-field-definition' export class GroupFieldDefinition extends ContainedFieldSet { constructor (public readonly name: string, public readonly abbreviation: string, public readonly category: string, public readonly noOfField: SimpleFieldDefinition, public readonly description: string) { super(ContainedSetType.Group, name, abbreviation, category, description) if (this.noOfField) { this.containedTag[this.noOfField.tag] = true } } public getPrefix (): string { return `G` } }