public class NotEmptyValidator extends Object implements SimpleValidator
Collection and Map it also means it is not empty.NotBlankValidator| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static NotEmptyValidator |
INSTANCE |
static String |
MESSAGE_ERROR_EMPTY |
| Constructor and Description |
|---|
NotEmptyValidator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
ValidationContext |
validate(Object input,
String inputHint,
ValidationContext context,
ValidatorConfig config)
Validates the given
input with an additional inputHint and config. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, create, init, postInitvalidate, validate, validate, validate, validate, validatevalidateConfigorderpublic static final NotEmptyValidator INSTANCE
public static final String ID
public static final String MESSAGE_ERROR_EMPTY
public String getId()
getId in interface ProviderFactory<Validator>public ValidationContext validate(Object input, String inputHint, ValidationContext context, ValidatorConfig config)
Validatorinput with an additional inputHint and config.Copyright © 2021 JBoss by Red Hat. All rights reserved.