refactored out xml components into multiple files

This commit is contained in:
Dolan Miu
2016-05-20 00:40:31 +01:00
parent 606e03d156
commit 37ac9f97a4
6 changed files with 167 additions and 157 deletions

View File

@ -0,0 +1,16 @@
import {BaseXmlComponent} from "./base";
export abstract class XmlUnitComponent extends BaseXmlComponent {
protected root: string;
constructor(rootKey: string) {
super(rootKey);
}
replaceKey(): void {
if (this.root !== undefined) {
this[this.rootKey] = this.root;
delete this.root;
}
}
}