All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.aguacate.validator.InputValidationResponse Maven / Gradle / Ivy

There is a newer version: 0.10.9
Show newest version
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;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy