|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.common.instance.extension.validation.InstanceValidationContext
public class InstanceValidationContext
Context for instance validation.
Constructor Summary | |
---|---|
InstanceValidationContext()
Constructs a new context object. |
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstanceValidationContext()
Method Detail |
---|
public Object getContext(Class<? extends ConstraintValidator> validatorClass)
validatorClass
- the validator class
null
if none was setpublic boolean containsContext(Class<? extends ConstraintValidator> validatorClass)
validatorClass
- the validator class
public void putContext(Class<? extends ConstraintValidator> validatorClass, Object contextObject)
null
.
validatorClass
- the validator classcontextObject
- the new associated object, may not be
null
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |