import { ValidationIssue } from "../../../Common/IDesignValidationProvider";
export class ResultCell {
    constructor(columnId) {
        this._columnId = columnId;
    }
    getStorageData() {
        return this;
    }
    setStorageData(data) {
        this._columnId = Reflect.get(data, "_columnId");
        this.value = Reflect.get(data, "value");
    }
    validateCellData(datadef) {
        let issues = [];
        if (this.value === undefined || this.value === null)
            issues.push(new ValidationIssue("value is required"));
        else if (datadef.verifyValueType(this.value)) {
            issues.push(new ValidationIssue("Invalid data type"));
        }
        return issues;
    }
}
//# sourceMappingURL=ResultCell.js.map