Interface ConstraintVisitor<T>
-
- All Known Implementing Classes:
AbstractVisitor
,ArrayVisitor
,FieldsVisitor
,FieldVisitor
,IterableVisitor
,ObjectVisitor
public interface ConstraintVisitor<T>
Interface for visiting a generic object T
- Since:
- 1.0
- Author:
- Christoph Praschl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PropertyVerificatorResult
visit(T toVisit)
Visit method for visiting a generic objectPropertyVerificatorResult
visit(T toVisit, Field fieldOfToVisitInParent, Object parent, Collection<Object> visitedObjs)
Visit method for visiting a generic object
-
-
-
Method Detail
-
visit
PropertyVerificatorResult visit(T toVisit, Field fieldOfToVisitInParent, Object parent, Collection<Object> visitedObjs)
Visit method for visiting a generic object- Parameters:
toVisit
- The generic object which should be visitedfieldOfToVisitInParent
- the corresponding field in the parent of which toVisit contains the valueparent
- The parent object wrapping the toVisit objectvisitedObjs
- A list of already visited objects to avoid circular calls- Returns:
- A map of objects and its fields which break a constraint
-
visit
PropertyVerificatorResult visit(T toVisit)
Visit method for visiting a generic object- Parameters:
toVisit
- The generic object which should be visited- Returns:
- A map of objects and its fields which break a constraint
-
-