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

com.global.api.builders.BaseBuilder Maven / Gradle / Ivy

There is a newer version: 14.2.3
Show newest version
package com.global.api.builders;

import com.global.api.builders.validations.Validations;
import com.global.api.entities.exceptions.ApiException;

public abstract class BaseBuilder {
    protected Validations validations;

    public Validations getValidations() {
        return validations;
    }
    public void setValidations(Validations validations) {
        this.validations = validations;
    }

    public BaseBuilder() {
        validations = new Validations();
        setupValidations();
    }

    public TResult execute() throws ApiException {
        return execute("default");
    }
    public TResult execute(String configName) throws ApiException {
        validations.validate(this);
        return null;
    }

    public abstract void setupValidations();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy