public class ValidationContext extends Object implements javax.validation.MessageInterpolator.Context
ConstraintDescriptor
and a value. Managing the value allows to resolve dynamic message interpolation for error messages
containing parametersConstructor and Description |
---|
ValidationContext(javax.validation.metadata.ConstraintDescriptor<?> constraintDescriptor,
Object validatedValue) |
Modifier and Type | Method and Description |
---|---|
javax.validation.metadata.ConstraintDescriptor<?> |
getConstraintDescriptor() |
Object |
getValidatedValue() |
<T> T |
unwrap(Class<T> type) |
public ValidationContext(javax.validation.metadata.ConstraintDescriptor<?> constraintDescriptor, Object validatedValue)
public javax.validation.metadata.ConstraintDescriptor<?> getConstraintDescriptor()
getConstraintDescriptor
in interface javax.validation.MessageInterpolator.Context
public Object getValidatedValue()
getValidatedValue
in interface javax.validation.MessageInterpolator.Context
public <T> T unwrap(Class<T> type)
unwrap
in interface javax.validation.MessageInterpolator.Context
Copyright © 2009–2014. All rights reserved.