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

com.whiteclarkegroup.liquibaselinter.config.rules.Rule Maven / Gradle / Ivy

There is a newer version: 0.5.1
Show newest version
package com.whiteclarkegroup.liquibaselinter.config.rules;

import liquibase.change.Change;

public abstract class Rule {

    private final RuleConfig ruleConfig;

    protected Rule(RuleConfig ruleConfig) {
        this.ruleConfig = ruleConfig;
    }

    protected abstract boolean invalid(T object, Change change);

    public RuleConfig getRuleConfig() {
        return ruleConfig;
    }

    public boolean isEnabled() {
        return getRuleConfig().isEnabled();
    }

    public String getErrorMessage() {
        return getRuleConfig().getErrorMessage();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy