类 VerifyRule

java.lang.Object
cn.benma666.iframe.BasicObject
cn.benma666.iframe.VerifyRule

public class VerifyRule extends BasicObject
验证规则
date: 2018年12月13日
作者:
jingma
  • 字段详细资料

  • 构造器详细资料

    • VerifyRule

      public VerifyRule()
  • 方法详细资料

    • ruleVerify

      public static String ruleVerify(Object val, com.alibaba.fastjson.JSONObject myParams, com.alibaba.fastjson.JSONObject rootRule, String cllx)
      规则校验
      参数:
      val - 值
      myParams - 相关参数
      rootRule - 验证规则
      cllx - 处理类型
      返回:
      验证结果
    • rulejx

      public static String rulejx(com.alibaba.fastjson.JSONObject field, com.alibaba.fastjson.JSONObject yzgz)
      规则解析
      参数:
      field - 字段对象
      yzgz - 规则
    • getGzms

      public static String getGzms(String ruleName, com.alibaba.fastjson.JSONObject ruleObj)
      获取规则描述
      参数:
      ruleName - 规则名称
      ruleObj - 规则对象
      返回:
      规则描述