org.javalid.core
Class ComplexValidationInfo
java.lang.Object
org.javalid.core.ComplexValidationInfo
- All Implemented Interfaces:
- java.io.Serializable
public class ComplexValidationInfo
- extends java.lang.Object
- implements java.io.Serializable
The instance passed to complex validators. It contains all information
on current validation round, including all info about the current
field / method that is under validation. As well as the original classcache (
cache of parent). It contains the current validator as well, be VERY
cautious to not cause infinite validation when using this.
- Since:
- 1.2
- Version:
- 1.0
- Author:
- M.Reuvers
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComplexValidationInfo
public ComplexValidationInfo(AnnotationValidator annotationValidator,
java.lang.Object myParent,
java.lang.String currentGroup,
int currentLevelDeep,
int maxLevelDeep,
boolean allowRecurse,
java.lang.String pathToParent,
ValueModel annotationValueModel,
AnnotationClassCache annotationClassCache,
boolean propertyCall)
getAnnotationValidator
public AnnotationValidator getAnnotationValidator()
getMyParent
public java.lang.Object getMyParent()
getCurrentGroup
public java.lang.String getCurrentGroup()
getCurrentLevelDeep
public int getCurrentLevelDeep()
getMaxLevelDeep
public int getMaxLevelDeep()
getPathToParent
public java.lang.String getPathToParent()
getAnnotationValueModel
public ValueModel getAnnotationValueModel()
- If field / method validation contains the instance it is about. If
classlevel annotation validation this one is NULL.
- Returns:
- ValueModel
getAnnotationClassCache
public AnnotationClassCache getAnnotationClassCache()
isPropertyCall
public boolean isPropertyCall()
- Returns true if we're validating a property, false for an object.
- Returns:
- True if validating a property
isAllowRecurse
public boolean isAllowRecurse()