public class CustomValidHandle extends Object implements ValidHandle
| 限定符和类型 | 字段和说明 |
|---|---|
protected Annotation |
annotation |
protected String |
name |
| 构造器和说明 |
|---|
CustomValidHandle(String name,
Annotation annotation)
初始化构造函数
|
protected String name
protected Annotation annotation
public CustomValidHandle(String name, Annotation annotation)
name - 对象属性名称annotation - 自定义的注解对象public void valid(Object target)
ValidatedException 异常valid 在接口中 ValidHandletarget - 待校验对象Copyright © 2024 lingkang. All rights reserved.