java.lang.Object |
↳ |
com.atlassian.bitbucket.validation.OptionalStringValidator |
Summary
Public Methods |
void
|
initialize(OptionalString constraintAnnotation)
|
boolean
|
isValid(String s, ConstraintValidatorContext constraintValidatorContext)
Checks that the trimmed string is not empty.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
javax.validation.ConstraintValidator
void
|
initialize(A arg0)
|
boolean
|
isValid(T arg0, ConstraintValidatorContext arg1)
|
|
Public Constructors
public
OptionalStringValidator
()
Public Methods
public
boolean
isValid
(String s, ConstraintValidatorContext constraintValidatorContext)
Checks that the trimmed string is not empty.
Parameters
s
| The string to validate. |
constraintValidatorContext
| context in which the constraint is evaluated. |
Returns
- Returns
true
if the string is null
or the length of s
between the specified
min
and max
values (inclusive), false
otherwise.