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