4 public final Namespace ns;
5 public final String local;
7 public Name(Namespace ns, String local) {
9 throw(new NullPointerException());
14 public Name(String local) {
18 public int hashCode() {
19 return(System.identityHashCode(ns) + local.hashCode());
22 private boolean equals(Name that) {
23 return((this.ns == that.ns) && this.local.equals(that.local));
26 public boolean equals(Object x) {
27 return((x instanceof Name) && equals((Name)x));
30 public String toString() {
31 return((ns == null) ? local : (ns.prefabb + ":" + local));