V
- The type of value to be validatedpublic abstract class AbstractValidation<V> extends Object implements Validation<V>
Validation
interface.Constructor and Description |
---|
AbstractValidation() |
Modifier and Type | Method and Description |
---|---|
boolean |
appendMessageArguments(ValidationContext<?> context,
Map<String,Object> arguments)
Appends
context argument that contains current validation
context. |
String |
getMessageTemplate(ValidationContext<?> context)
Returns localized error message template using class name as message key.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getType
public String getMessageTemplate(ValidationContext<?> context)
getMessageTemplate
in interface Validation<V>
context
- Validation context.public boolean appendMessageArguments(ValidationContext<?> context, Map<String,Object> arguments)
context
argument that contains current validation
context.appendMessageArguments
in interface Validation<V>
context
- Validation context.arguments
- Arguments to be substituted into the error message
template.true
.Copyright © 2011–2020 FoxLabs. All rights reserved.