Package de.danielbechler.diff.node
Class ToMapPrintingVisitor
java.lang.Object
de.danielbechler.diff.node.PrintingVisitor
de.danielbechler.diff.node.ToMapPrintingVisitor
- All Implemented Interfaces:
DiffNode.Visitor
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.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()protected StringdifferenceToString(DiffNode node, Object base, Object modified) getMessage(NodePath path) booleanprotected voidtoString()Methods inherited from class de.danielbechler.diff.node.PrintingVisitor
filter, node
-
Constructor Details
-
ToMapPrintingVisitor
-
-
Method Details
-
print
- Overrides:
printin classPrintingVisitor
-
differenceToString
- Overrides:
differenceToStringin classPrintingVisitor
-
clear
public void clear() -
getMessages
-
getMessage
-
hasMessages
public boolean hasMessages() -
getMessagesAsString
-
toString
-