woltlab-compiler
Version:
A compiler for WoltLab-Package Archives and WoltLab-Package Components
20 lines • 869 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const XML_1 = require("../Serialization/XML");
const XMLEditor_1 = require("../Serialization/XMLEditor");
const ObjectDeletionFileCompiler_1 = require("./ObjectDeletionFileCompiler");
/**
* Provides the functionality to compile files with a named delete-section.
*/
class NamedObjectDeletionFileCompiler extends ObjectDeletionFileCompiler_1.ObjectDeletionFileCompiler {
/**
* @inheritdoc
*/
CreateDeleteObject(object) {
let editor = new XMLEditor_1.XMLEditor(XML_1.XML.CreateDocument(this.ObjectTagName).documentElement);
editor.SetAttribute("name", object.Name);
return editor.Element;
}
}
exports.NamedObjectDeletionFileCompiler = NamedObjectDeletionFileCompiler;
//# sourceMappingURL=NamedObjectDeletionFileCompiler.js.map