
org.xson.common.validate.XCOValidate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xco-validate Show documentation
Show all versions of xco-validate Show documentation
xco-validate based XCO, using xml language to describe data validation framework.
The newest version!
package org.xson.common.validate;
import org.xson.common.object.XCO;
/**
* XCO数据验证
*/
public class XCOValidate {
/**
* XCO参数校验入库
*
* @param groupName
* 校验名称
* @param xco
* 入参
* @return 校验结果
*/
public static boolean validate(String ruleGroupId, XCO xco) {
RuleGroup group = Container.ruleGroupsMap.get(ruleGroupId);
if (group == null) {
throw new XCOValidateException("validation template does not exist: " + ruleGroupId);
}
return group.check(xco);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy