net.sf.aguacate.context.ContextValidationResult Maven / Gradle / Ivy
package net.sf.aguacate.context;
import java.util.List;
import java.util.Map;
import net.sf.aguacate.function.FunctionEvalResult;
public class ContextValidationResult {
private final List errors;
private final Map context;
public ContextValidationResult(List errors, Map context) {
this.errors = errors;
this.context = context;
}
public boolean isSuccess() {
return errors == null || errors.isEmpty();
}
public List getErrors() {
return errors;
}
public Map getContext() {
return context;
}
}