1 package org
.argeo
.slc
.diff
;
4 * <code>DiffMissing</code> using the XPath of the position as
7 public class DiffMissingXml
extends DiffMissing
{
9 public DiffMissingXml(XPathDiffPosition position
) {
10 super(position
, new DiffKeyXml(position
.getXPath()));
13 /** Implementation of <code>DiffKey</code> based on an XPath string. */
14 protected static class DiffKeyXml
implements DiffKey
{
15 private final String xPath
;
17 public DiffKeyXml(String xPath
) {
21 public String
getXPath() {
26 public String
toString() {
31 public boolean equals(Object obj
) {
32 if (!(obj
instanceof DiffKeyXml
))
34 return xPath
.equals(((DiffKeyXml
) obj
).xPath
);
38 public int hashCode() {
39 return xPath
.hashCode();