1 16 17 package org.apache.xerces.util; 18 19 27 final class XMLErrorCode { 28 29 33 34 private String fDomain; 35 36 37 private String fKey; 38 39 45 public XMLErrorCode(String domain, String key) { 46 fDomain = domain; 47 fKey = key; 48 } 49 50 56 public void setValues(String domain, String key) { 57 fDomain = domain; 58 fKey = key; 59 } 60 61 66 public boolean equals(Object obj) { 67 if (!(obj instanceof XMLErrorCode)) 68 return false; 69 XMLErrorCode err = (XMLErrorCode) obj; 70 return (fDomain.equals(err.fDomain) && fKey.equals(err.fKey)); 71 } 72 73 78 public int hashCode() { 79 return fDomain.hashCode() + fKey.hashCode(); 80 } 81 } | Popular Tags |