1 17 package org.apache.ws.jaxme.xs.xml; 18 19 23 public class XsAnyURI { 24 private String uri; 25 26 public XsAnyURI(String pURI) { 27 if (pURI == null) { 28 throw new NullPointerException ("An URI must not be null"); 29 } 30 uri = pURI; 31 } 32 33 public boolean equals(Object o) { 34 return o != null && o instanceof XsAnyURI && uri.equals(((XsAnyURI) o).uri); 35 } 36 37 public int hashCode() { 38 return uri.hashCode(); 39 } 40 41 public String toString() { 42 return uri; 43 } 44 45 public String getURI() { 46 return uri; 47 } 48 } 49 | Popular Tags |