"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VmlProtectionXform = void 0;
const base_xform_1 = require("../../base-xform.js");
class VmlProtectionXform extends base_xform_1.BaseXform {
    constructor(model) {
        super();
        this._model = model || {};
        this.text = "";
    }
    get tag() {
        return this._model?.tag ?? "";
    }
    render(xmlStream, model) {
        xmlStream.leafNode(this.tag, null, model);
    }
    parseOpen(node) {
        switch (node.name) {
            case this.tag:
                this.text = "";
                return true;
            default:
                return false;
        }
    }
    parseText(text) {
        this.text = text;
    }
    parseClose() {
        return false;
    }
}
exports.VmlProtectionXform = VmlProtectionXform;
