mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
23 lines
430 B
TypeScript
23 lines
430 B
TypeScript
import BadDataException from "./Exception/BadDataException";
|
|
|
|
export default class XML {
|
|
private _xml: string = "";
|
|
public get xml(): string {
|
|
return this._xml;
|
|
}
|
|
public set xml(v: string) {
|
|
if (!v) {
|
|
throw new BadDataException("XML is not in valid format.");
|
|
}
|
|
this._xml = v;
|
|
}
|
|
|
|
public constructor(xml: string) {
|
|
this.xml = xml;
|
|
}
|
|
|
|
public toString(): string {
|
|
return this.xml;
|
|
}
|
|
}
|