Modifier and Type | Field and Description |
---|---|
private ValidationId |
ValidationOverrides.Allow.validationId |
private ValidationId |
ValidationOverrides.ValidationException.validationId |
Modifier and Type | Method and Description |
---|---|
ValidationId |
ValidationOverrides.ValidationException.validationId()
Returns the unique id of this validation, which can be used to
override it |
static ValidationId |
ValidationId.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValidationId[] |
ValidationId.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static Optional<ValidationId> |
ValidationId.from(String id)
Returns the validation id from this string.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ValidationOverrides.allows(ValidationId validationId,
Instant now)
Returns whether the given (assumed invalid) change is allowed by this at the moment
|
boolean |
ValidationOverrides.Allow.allows(ValidationId validationId,
Instant now) |
void |
ValidationOverrides.invalid(ValidationId validationId,
String message,
Instant now)
Throws a ValidationException unless this validation is overridden at this time
|
Constructor and Description |
---|
Allow(ValidationId validationId,
Instant until) |
ValidationException(ValidationId validationId,
String message) |
Copyright © 2017. All rights reserved.