com.thoughtworks.xstream.io.xml.xppdom
Class XppDomComparator

java.lang.Object
  extended by com.thoughtworks.xstream.io.xml.xppdom.XppDomComparator
All Implemented Interfaces:
Comparator

public class XppDomComparator
extends Object
implements Comparator

Comparator for XppDom. Comparator can trace the XPath where the comparison failed.

Since:
1.4.1
Author:
Jörg Schaible

Constructor Summary
XppDomComparator()
          Creates a new Xpp3DomComparator object.
XppDomComparator(ThreadLocal xpath)
          Creates a new Xpp3DomComparator object with XPath identification.
 
Method Summary
 int compare(Object dom1, Object dom2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

XppDomComparator

public XppDomComparator()
Creates a new Xpp3DomComparator object.

Since:
1.4.1

XppDomComparator

public XppDomComparator(ThreadLocal xpath)
Creates a new Xpp3DomComparator object with XPath identification.

Parameters:
xpath - the reference for the XPath
Since:
1.4.1
Method Detail

compare

public int compare(Object dom1,
                   Object dom2)
Specified by:
compare in interface Comparator


Copyright © 2004-2014 XStream. All Rights Reserved.