Class ObjectVisitor

    • Method Detail

      • visit

        public PropertyVerificatorResult visit​(Object toVisit,
                                               Field fieldOfToVisitInParent,
                                               Object parent,
                                               Collection<Object> visitedObjs)
        Visit method for visiting an object
        Parameters:
        toVisit - An 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