2017-07-08 20:45:19 +01:00
|
|
|
import { IXmlableObject } from "./xmlable-object";
|
|
|
|
|
2016-05-20 00:40:31 +01:00
|
|
|
export abstract class BaseXmlComponent {
|
2018-11-02 02:51:57 +00:00
|
|
|
protected readonly rootKey: string;
|
|
|
|
// tslint:disable-next-line:readonly-keyword
|
2018-04-26 14:16:02 +02:00
|
|
|
protected deleted: boolean = false;
|
2016-05-20 00:40:31 +01:00
|
|
|
|
|
|
|
constructor(rootKey: string) {
|
|
|
|
this.rootKey = rootKey;
|
|
|
|
}
|
|
|
|
|
2018-09-20 00:41:57 +01:00
|
|
|
public abstract prepForXml(): IXmlableObject | undefined;
|
2018-04-26 14:16:02 +02:00
|
|
|
|
2018-08-07 01:25:28 +01:00
|
|
|
public get IsDeleted(): boolean {
|
2018-04-26 14:16:02 +02:00
|
|
|
return this.deleted;
|
|
|
|
}
|
2017-03-08 21:49:41 +00:00
|
|
|
}
|