"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BooleanXform = void 0;
const base_xform_1 = require("../base-xform.js");
class BooleanXform extends base_xform_1.BaseXform {
    constructor(options) {
        super();
        this.tag = options.tag;
        this.attr = options.attr;
    }
    render(xmlStream, model) {
        if (model) {
            xmlStream.openNode(this.tag);
            xmlStream.closeNode();
        }
    }
    parseOpen(node) {
        if (node.name === this.tag) {
            this.model = true;
        }
    }
    parseText() { }
    parseClose() {
        return false;
    }
}
exports.BooleanXform = BooleanXform;
