public class DefaultValidationContext extends HashMap<String,Object> implements ValidationContext
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
DefaultValidationContext()
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
ExitStatus |
getExitStatus()
Get the
ExitStatus of the global validation execution. |
Iterator<ValidatorExecution> |
iterator() |
void |
putValue(String name,
Object value)
Put a value in the context
|
String |
toString() |
void |
traceExecution(ValidatorExecution validatorExecution)
Trace a
ValidatorExecution. |
<T> Optional<T> |
tryResolveValue(String name,
Class<T> expectedType)
Try to resolve a value its name.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCodefinalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic DefaultValidationContext()
public void traceExecution(ValidatorExecution validatorExecution)
ValidatorExecution.validatorExecution - the executionpublic Iterator<ValidatorExecution> iterator()
iterator in interface Iterable<ValidatorExecution>public void putValue(String name, Object value)
ValidationContextputValue in interface ValidationContextname - the key used to store the valuepublic <T> Optional<T> tryResolveValue(String name, Class<T> expectedType)
ValidationContexttryResolveValue in interface ValidationContextname - the name of the object storedOptional containg the resolved valuepublic ExitStatus getExitStatus()
ExitStatus of the global validation execution.getExitStatus in interface ValidationContextExitStatuspublic String toString()
toString in class AbstractMap<String,Object>Copyright © 2018 Latitude Srls. All rights reserved.