1 /* 2 * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved. 3 */ 4 package com.tc.config.schema.utils; 5 6 import org.apache.xmlbeans.XmlObject; 7 8 /** 9 * Allows you to compare several {@link XmlObject}s. 10 */ 11 public interface XmlObjectComparator { 12 13 boolean equals(XmlObject one, XmlObject two); 14 15 /** 16 * This compares two {@link XmlObject} implementations to see if they are semantically equal; it also descends to 17 * child objects. It throws an exception instead of returning a value so that you can find out <em>why</em> the two 18 * objects aren't equal, since this is a deep compare. 19 */ 20 void checkEquals(XmlObject one, XmlObject two) throws NotEqualException; 21 22 } 23