
com.whiteclarkegroup.liquibaselinter.config.rules.Rule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-linter Show documentation
Show all versions of liquibase-linter Show documentation
Liquibase extension to add configurable script linting
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