Created classes and methods needed to create Sequential Identifiers

This commit is contained in:
Sergio Mendonça
2018-10-19 16:50:51 -03:00
parent a466578467
commit 23dee01f06
6 changed files with 121 additions and 1 deletions

View File

@ -0,0 +1,13 @@
import { Run } from "file/paragraph/run";
import { Begin, End, Separate } from "file/paragraph/run/field";
import { SequentialIdentifierInstruction } from "./sequential-identifier-instruction";
export class SequentialIdentifier extends Run {
constructor(identifier: string) {
super();
this.root.push(new Begin(true));
this.root.push(new SequentialIdentifierInstruction(identifier));
this.root.push(new Separate());
this.root.push(new End());
}
}