JValidations

码农软件 · 软件分类 · 其他开发相关 · 2019-10-31 05:56:50

软件介绍

JValidations 是一个 Java 对象的数据验证框架。

示例代码:

public class Customer implements Validatable<ValidationReport>{
private String name;
private String email;

public void buildValidation(ValidationSyntax validates, ValidationReport report) {
validates.that("name", not(isEmptyString()), _else(report,"isBlank", fieldName()));
validates.that("email", not(isEmptyString()), _else(report,"isBlank", fieldName()));
}

public interface ValidationReport {
void isBlank(String fieldName);
}
}

本文地址:https://codercto.com/soft/d/17932.html

Single Page Web Applications

Single Page Web Applications

Michael Mikowski、Josh Powell / Manning Publications / 2013-9-30 / USD 44.99

Code for most web sites mostly runs on the server. When a user clicks on a link, the site reacts slowly because the browser sends information to the server and the server sends it back again before di......一起来看看 《Single Page Web Applications》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

在线进制转换器
在线进制转换器

各进制数互转换器

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试