public class InstanceValidationContext extends Object
Constructor and Description |
---|
InstanceValidationContext()
Constructs a new context object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsContext(Class<? extends ConstraintValidator> validatorClass)
Returns true, if and only if there is a context object present for the
given validator class.
|
Object |
getContext(Class<? extends ConstraintValidator> validatorClass)
Returns the object associated with the given validator class.
|
void |
putContext(Class<? extends ConstraintValidator> validatorClass,
Object contextObject)
Sets the given object as the context object for the given validator
class.
The object may not be null . |
public InstanceValidationContext()
public Object getContext(Class<? extends ConstraintValidator> validatorClass)
validatorClass
- the validator classnull
if none was setpublic boolean containsContext(Class<? extends ConstraintValidator> validatorClass)
validatorClass
- the validator classpublic void putContext(Class<? extends ConstraintValidator> validatorClass, Object contextObject)
null
.validatorClass
- the validator classcontextObject
- the new associated object, may not be
null
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a