Interface ConstraintVisitor<T>

    • 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 visited
        fieldOfToVisitInParent - the corresponding field in the parent of which toVisit contains the value
        parent - The parent object wrapping the toVisit object
        visitedObjs - 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