1 16 package org.apache.axis2.om.impl.llom; 17 18 import org.apache.axis2.om.OMNamespace; 19 20 23 public class OMNamespaceImpl implements OMNamespace { 24 27 private String prefix; 28 29 32 private String uri; 33 34 36 40 public OMNamespaceImpl(String uri, String prefix) { 41 this.uri = uri; 42 this.prefix = prefix; 43 } 44 45 52 public boolean equals(String uri, String prefix) { 53 return (((prefix == null) && (this.prefix == null)) || ((prefix != null) && prefix.equals( 54 this.prefix))) && uri.equals(uri); 55 } 56 57 62 public String getPrefix() { 63 return prefix; 64 } 65 66 71 public String getName() { 72 return uri; 73 } 74 } 75 | Popular Tags |