| Modifier and Type | Field and Description |
|---|---|
static NotNullValidator |
instance |
| Constructor and Description |
|---|
NotNullValidator() |
| Modifier and Type | Method and Description |
|---|---|
Class<?>[] |
groups(NotNull anno)
校验分组
|
String |
message(NotNull anno) |
org.noear.solon.core.handle.Result |
validateOfContext(org.noear.solon.core.handle.Context ctx,
NotNull anno,
String name,
StringBuilder tmp)
验证上下文
|
org.noear.solon.core.handle.Result |
validateOfValue(NotNull anno,
Object val,
StringBuilder tmp)
验证值
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSupportValueTypepublic static final NotNullValidator instance
public org.noear.solon.core.handle.Result validateOfValue(NotNull anno, Object val, StringBuilder tmp)
ValidatorvalidateOfValue in interface Validator<NotNull>anno - 验证注解val - 值tmp - 临时字符构建器(用于构建 message;起到复用之效)public org.noear.solon.core.handle.Result validateOfContext(org.noear.solon.core.handle.Context ctx,
NotNull anno,
String name,
StringBuilder tmp)
ValidatorvalidateOfContext in interface Validator<NotNull>ctx - 上下文anno - 验证注解name - 参数名(可能没有)tmp - 临时字符构建器(用于构建 message;起到复用之效)Copyright © 2025. All rights reserved.