org.javalid.core
Class ValidatorCallInfo
java.lang.Object
org.javalid.core.ValidatorCallInfo
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class ValidatorCallInfo
- extends java.lang.Object
- implements java.io.Serializable, java.lang.Cloneable
State object, which is set by AnnotationValidatorImpl for each validation 'round' (see validateObjectPriv
in that class) in the ThreadState class.
This information can be used by annotation validators (the implementations)
if they must call the validator itself, with the proper parameters that were used
when they were called themselves, see for instance the ValidateMapValidatorImpl.
- Added objectMyParent instance, which is set by the annotationvalidator at the START of each round denoting
the parent object of the instance of this class (so the enclosing object of instance, originally
its taken from the validatorParams). This is needed for instance in the database extension
for expression resolving.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- M.Reuvers
- See Also:
ThreadState,
ValidatorParams,
AnnotationValidatorImpl.validateObjectPriv(org.javalid.core.ValidatorParams, int, java.lang.String, org.javalid.core.JavalidValidationCallbackHandler, java.util.List),
Serialized Form
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ValidatorCallInfo
public ValidatorCallInfo()
isPropertyCall
public boolean isPropertyCall()
getGroup
public java.lang.String getGroup()
getCurrentPathPrefix
public java.lang.String getCurrentPathPrefix()
isRecurse
public boolean isRecurse()
getCurrentLevelDeep
public int getCurrentLevelDeep()
getMaxLevelDeep
public int getMaxLevelDeep()
setState
public void setState(boolean propertyCall,
java.lang.String group,
java.lang.String currentPathPrefix,
boolean recurse,
int currentLevelDeep,
int maxLevelDeep,
java.lang.Object objectMyParent)
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getObjectMyParent
public java.lang.Object getObjectMyParent()