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