org.javalid.core
Class ValidatorCallInfo

java.lang.Object
  extended by 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.

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

Constructor Summary
ValidatorCallInfo()
           
 
Method Summary
 java.lang.Object clone()
           
 int getCurrentLevelDeep()
           
 java.lang.String getCurrentPathPrefix()
           
 java.lang.String getGroup()
           
 int getMaxLevelDeep()
           
 java.lang.Object getObjectMyParent()
           
 boolean isPropertyCall()
           
 boolean isRecurse()
           
 void setState(boolean propertyCall, java.lang.String group, java.lang.String currentPathPrefix, boolean recurse, int currentLevelDeep, int maxLevelDeep, java.lang.Object objectMyParent)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidatorCallInfo

public ValidatorCallInfo()
Method Detail

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()