net.sf.aguacate.validator.InputValidationResponse Maven / Gradle / Ivy
package net.sf.aguacate.validator;
import java.util.Map;
public class InputValidationResponse {
private final Map context;
private final Map failures;
public InputValidationResponse(Map context, Map failures) {
this.context = context;
this.failures = failures;
}
public boolean isSuccess() {
return failures == null || failures.isEmpty();
}
public Map getContext() {
return context;
}
public Map getFailures() {
return failures;
}
}