cdc.mf.checks.atts.cardinality.AbstractCardinalityLowerBoundMustBeOne Maven / Gradle / Ivy
The newest version!
package cdc.mf.checks.atts.cardinality;
import java.util.List;
import cdc.issues.checks.SnapshotManager;
import cdc.issues.rules.Rule;
import cdc.mf.model.MfCardinalityItem;
/**
* Check that if an {@link MfCardinalityItem} has a valid effective cardinality, its lower bound is 1.
*
* @author Damien Carbonne
* @param The {@link MfCardinalityItem} type.
*/
public abstract class AbstractCardinalityLowerBoundMustBeOne
extends AbstractCardinalityLowerBoundMustBeAmong {
private static final List VALUES = List.of(1);
protected static String describe(String article,
String item) {
return describe(article, item, VALUES);
}
protected AbstractCardinalityLowerBoundMustBeOne(SnapshotManager manager,
Class objectClass,
Rule rule) {
super(manager,
objectClass,
rule,
VALUES);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy