All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openl.rules.rest.compile.TableInfo Maven / Gradle / Ivy

There is a newer version: 5.27.9
Show newest version
package org.openl.rules.rest.compile;

import java.util.List;

import org.apache.commons.lang3.tuple.Pair;

import org.openl.rules.webstudio.web.tableeditor.TableBean;

public class TableInfo {

    private final List errors;
    private final List warnings;
    private final List> targetTables;
    private final String tableUrl;
    private final TableRunState tableRunState;

    public TableInfo(Builder from) {
        this.errors = from.errors;
        this.warnings = from.warnings;
        this.targetTables = from.targetTables;
        this.tableUrl = from.tableUrl;
        this.tableRunState = from.tableRunState;
    }

    public List getErrors() {
        return errors;
    }

    public List getWarnings() {
        return warnings;
    }

    public List> getTargetTables() {
        return targetTables;
    }

    public String getTableUrl() {
        return tableUrl;
    }

    public TableRunState getTableRunState() {
        return tableRunState;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static class Builder {

        private List errors;
        private List warnings;
        private List> targetTables;
        private String tableUrl;
        private TableRunState tableRunState;

        private Builder() {
        }

        public Builder errors(List errors) {
            this.errors = errors;
            return this;
        }

        public Builder warnings(List warnings) {
            this.warnings = warnings;
            return this;
        }

        public Builder targetTables(List> targetTables) {
            this.targetTables = targetTables;
            return this;
        }

        public Builder tableUrl(String tableUrl) {
            this.tableUrl = tableUrl;
            return this;
        }

        public Builder tableRunState(TableRunState tableRunState) {
            this.tableRunState = tableRunState;
            return this;
        }

        public TableInfo build() {
            return new TableInfo(this);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy