Class ToMapPrintingVisitor

java.lang.Object
de.danielbechler.diff.node.PrintingVisitor
de.danielbechler.diff.node.ToMapPrintingVisitor
All Implemented Interfaces:
DiffNode.Visitor

public class ToMapPrintingVisitor extends PrintingVisitor
This visitor generates the same output as the PrintingVisitor, but instead of printing it to System.out, it will store the messages in a Map, identified by the property path of the visited node. The Map can later be accessed via getMessages() to provide a way to post-process the collected information.