16 lines
358 B
TypeScript
16 lines
358 B
TypeScript
![]() |
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;
|
||
|
}
|
||
|
}
|
||
|
}
|