var Specification = /** @class */ (function () {
    function Specification(spec) {
        this.raw = spec;
    }
    /**
     * Initializes the default specification attributes to the node
     *
     * @param node the node which will be initialized
     * @param className the className which is set to the node
     */
    Specification.prototype.initNode = function (node, className) {
        if (className)
            node.addClasses(className);
        node.setId(this.raw.id);
        node.setName(this.raw.name);
        node.setRequired(this.raw.required);
        node.innerText(this.raw.text);
        node.addClasses("lto-" + (this.raw.position || 'left'));
        this.raw.class !== undefined ? node.addClasses(this.raw.class) : function () { };
        return node;
    };
    return Specification;
}());
export { Specification };
//# sourceMappingURL=Specification.js.map