com.itranswarp.jsonstream.validator.Validator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsonstream Show documentation
Show all versions of jsonstream Show documentation
Fast JSON serializer/deserializer with JavaBean bindings and validations.
package com.itranswarp.jsonstream.validator;
/**
* Validate property values.
*
* @author Michael Liao
*/
public interface Validator {
/**
* Validate a property value. Throws ValidateException If validation failed.
*
* @param propValue The property value.
* @param path The path of the JSON document. e.g. "Group.Users[0].Address".
* @param name The property name of the JSON document. e.g. "zipcode".
*/
void validate(T propValue, String path, String name);
}