public static final class NotEmptyConstraint.StringType extends NotEmptyConstraint<String>
NotEmptyConstraint
implementation for
java.lang.String
type.ConstraintFactory.stringNotEmpty()
NotEmptyConstraint.ArrayType, NotEmptyConstraint.CollectionType, NotEmptyConstraint.MapType, NotEmptyConstraint.StringType
Modifier and Type | Field and Description |
---|---|
static NotEmptyConstraint.StringType |
DEFAULT
NotEmptyConstraint.StringType single instance. |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getType()
Returns
java.lang.String type. |
protected <T> boolean |
isEmpty(String value,
ValidationContext<T> context)
Determines whether the specified string is empty.
|
check, getMessageTemplate
validate
appendMessageArguments
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendMessageArguments
public static final NotEmptyConstraint.StringType DEFAULT
NotEmptyConstraint.StringType
single instance.public Class<?> getType()
java.lang.String
type.java.lang.String
type.protected <T> boolean isEmpty(String value, ValidationContext<T> context)
isEmpty
in class NotEmptyConstraint<String>
T
- The type of validated entity.value
- String to be checked for empty.context
- Validation context.true
if the specified string is empty;
false
otherwise.Copyright © 2011–2020 FoxLabs. All rights reserved.