19 lines
506 B
TypeScript
19 lines
506 B
TypeScript
import { IViewWrapper } from "../document-wrapper";
|
|
import { IXmlableObject } from "./xmlable-object";
|
|
|
|
export abstract class BaseXmlComponent {
|
|
protected readonly rootKey: string;
|
|
// tslint:disable-next-line:readonly-keyword
|
|
protected deleted: boolean = false;
|
|
|
|
constructor(rootKey: string) {
|
|
this.rootKey = rootKey;
|
|
}
|
|
|
|
public abstract prepForXml(file?: IViewWrapper): IXmlableObject | undefined;
|
|
|
|
public get IsDeleted(): boolean {
|
|
return this.deleted;
|
|
}
|
|
}
|