![JAR search and dependency download from the Maven repository](/logo.png)
eu.europa.esig.dss.validation.process.bbb.AbstractValueCheckItem Maven / Gradle / Ivy
package eu.europa.esig.dss.validation.process.bbb;
import org.apache.commons.lang.StringUtils;
import eu.europa.esig.dss.jaxb.detailedreport.XmlConstraintsConclusion;
import eu.europa.esig.dss.validation.process.ChainItem;
import eu.europa.esig.jaxb.policy.LevelConstraint;
public abstract class AbstractValueCheckItem extends ChainItem {
private static final String ALL_VALUE = "*";
protected AbstractValueCheckItem(T result, LevelConstraint constraint) {
super(result, constraint);
}
protected boolean processValueCheck(String value, String expected) {
if (StringUtils.isEmpty(value)) {
return false;
}
if (ALL_VALUE.equals(expected)) {
return true;
} else {
return StringUtils.equals(expected, value);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy