import { DataUtilities } from "../../../Common/DataUtilities";
import { ValidationIssue } from "../../../Common/IDesignValidationProvider";
export class TableColumn {
    constructor() {
        this._id = DataUtilities.generateUniqueId();
        // this is auto generated as ruleCol1, ruleCol2, resultCol1... but can be changed via action
        this.name = "";
    }
    getDesignValidationIssues() {
        if (this.name === "") {
            return [new ValidationIssue("result name is required")];
        }
        return [];
    }
    getStorageData() {
        return this;
    }
    setStorageData(data) {
        this._id = Reflect.get(data, "_id");
        this.name = Reflect.get(data, "name");
        this.dataType = Reflect.get(data, "dataType");
    }
}
//# sourceMappingURL=TableColumn.js.map