public final class LowerCaseConstraint extends CorrectConstraint<String>
CorrectConstraint
implementation that
converts a string to lower case.LowerCase
,
ConstraintFactory.lowerCase()
Modifier and Type | Field and Description |
---|---|
static LowerCaseConstraint |
DEFAULT
LowerCaseConstraint single instance. |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getType()
Returns
java.lang.String type. |
<T> String |
validate(String value,
ValidationContext<T> context)
Converts the specified string to lower case.
|
getMessageTemplate
appendMessageArguments
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendMessageArguments
public static final LowerCaseConstraint DEFAULT
LowerCaseConstraint
single instance.public Class<?> getType()
java.lang.String
type.java.lang.String
type.public <T> String validate(String value, ValidationContext<T> context)
T
- The type of validated entity.value
- String to be lowercased.context
- Validation context.Copyright © 2011–2020 FoxLabs. All rights reserved.