01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.config.schema.utils;
05:
06: import org.apache.xmlbeans.XmlObject;
07:
08: /**
09: * 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)
21: throws NotEqualException;
22:
23: }
|