public abstract class LocalDateTimeValidator extends BaseValidator<LocalDateTime>
| Modifier and Type | Class and Description |
|---|---|
static class |
LocalDateTimeValidator.After |
static class |
LocalDateTimeValidator.Before |
static class |
LocalDateTimeValidator.SameTimeOrAfter |
static class |
LocalDateTimeValidator.SameTimeOrBefore |
| Modifier and Type | Field and Description |
|---|---|
protected LocalDateTime |
ref |
| Constructor and Description |
|---|
LocalDateTimeValidator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getInvalidSpecificationMessage()
If the specification itself is invalid (such as a bad regex string), this
will build a message describing the problem to the user.
|
boolean |
isSpecificationValid()
Returns true if the validation criteria itself is valid.
|
getInvalidMessage, isValid, isValidWithoutNullclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTheValueMustDescriptionprotected LocalDateTime ref
public boolean isSpecificationValid()
ValidatorFor things like regex expressions, this would check to see if the regex expression is a valid expression.
public String getInvalidSpecificationMessage()
ValidatorThis method may return a message regardless of if the validation is invalid or not - use isSpecificationValid() to determine if the Validator is configured correctly or not.
Copyright © 2022. All rights reserved.