1 19 package org.netbeans.tax; 20 21 29 public final class TreeNamespace { 30 31 32 public static final TreeNamespace NO_NAMESPACE = new TreeNamespace (null, ""); 34 35 public static final TreeNamespace XML_NAMESPACE = new TreeNamespace ("xml", "http://www.w3.org/XML/1998/namespace"); 37 38 public static final TreeNamespace XMLNS_NAMESPACE = new TreeNamespace ("xmlns", "http://www.w3.org/2000/xmlns/"); 40 41 public static final String DEFAULT_NS_PREFIX = ""; 43 44 private String prefix; 45 46 47 private String uri; 48 49 50 54 59 protected TreeNamespace (String prefix, String uri) { 60 if (uri == null) throw new IllegalArgumentException (Util.THIS.getString ("EXC_uri_cannot_be_null")); 61 this.prefix = prefix; 62 this.uri = uri; 63 } 64 65 66 protected TreeNamespace (TreeNamespace namespace) { 67 this.prefix = namespace.prefix; 68 this.uri = namespace.uri; 69 } 70 71 72 76 79 public String getPrefix () { 80 return prefix; 81 } 82 83 86 public String getURI () { 87 return uri; 88 } 89 90 } 91 | Popular Tags |