package com.thaiopensource.relaxng.output.common;

final public class Name {
  private final String namespaceUri;
  private final String localName;

  public Name(String namespaceUri, String localName) {
    this.namespaceUri = namespaceUri;
    this.localName = localName;
  }

  public String getNamespaceUri() {
    return namespaceUri;
  }

  public String getLocalName() {
    return localName;
  }

  public int hashCode() {
    return namespaceUri.hashCode() ^ localName.hashCode();
  }

  public boolean equals(Object obj) {
    if (!(obj instanceof Name))
      return false;
    Name other = (Name)obj;
    return this.namespaceUri.equals(other.namespaceUri) && this.localName.equals(other.localName);
  }
}

@@ -68,16 +68,38 @@
 ss Name 
+implements Comparable 
 %7B%0A  priv
@@ -730,11 +730,230 @@
 me);%0A  %7D
+%0A%0A  public int compareTo(Object o) %7B%0A    Name other = (Name)o;%0A    int ret = this.namespaceUri.compareTo(other.namespaceUri);%0A    if (ret != 0)%0A      return ret;%0A    return this.localName.compareTo(other.localName);%0A  %7D
 %0A%7D%0A

Implement Comparable