Package | Description |
---|---|
org.huihoo.ofbiz.smart.base.util |
提供一些比较常用的工具方法。
|
org.huihoo.ofbiz.smart.base.validation |
提供一个简单实用的实体或服务输入参数验证框架,参考JSR303验证规范实现
|
org.huihoo.ofbiz.smart.base.validation.constraintvalidator |
Class and Description |
---|
ConstraintViolation |
Class and Description |
---|
Constraint |
ConstraintViolation |
ValidateProfile
表示验证环境,包括创建实体时验证,更新实体时验证,任意情况都验证。
|
Class and Description |
---|
Alphanum
检查要验证的字符串是否是字母和数字的组合
|
ConstraintValidator
验证器接口
|
DecimalMax
检查要验证的数字字符串是否小于或等于指定的最大值
|
DecimalMin
检查要验证的数字字符串是否大于或等于指定的最小值
|
DecimalRange
检查要验证的数字字符串是否在指定的最小值和最大值之间
|
Digits
检查要验证的字符串是否是有效的数字
|
Email
检查要验证的字符串是否是有效的邮箱
|
Max
检查要验证的整数是否小于或等于指定的最大值
|
MaxLength
检查要验证的字符串长度是否小于或等于指定的最大值
|
Min
检查要验证的整数是否大于或等于指定的最小值
|
MinLength
检查要验证的字符串长度是否大于或等于指定的最小值
|
Null
检查要验证的对象应该为空
|
Pattern
检查要验证的字符串是否匹配指定的正则表达式
|
Required
检查要验证的对象不能为空,即不能等于
Null 和空值 |
Url
检查要验证的字符串是否是一个有效的Url地址
|
Copyright © 2016 huihoo. All rights reserved.