The StyleChangeInfo class represents information about a style change in a compared document.
It provides details such as the changed property name, values before and after the change, and so on.
Use this class to retrieve information about style changes during the document comparison process.
Example usage:
try (Comparer comparer = new Comparer(sourceFile)) {
comparer.add(targetFile);
comparer.compare();
final ChangeInfo[] changes = comparer.getChanges();
for (ChangeInfo change : changes) {
// Access the style change information
final List styleChanges = change.getStyleChanges();
for (StyleChangeInfo styleChange : styleChanges) {
// Print the style change information
System.out.println("PropertyName: " + styleChange.getPropertyName());
System.out.println("OldValue: " + styleChange.getOldValue());
System.out.println("NewValue: " + styleChange.getNewValue());
}
}
}