org.apache.axiom.om.impl
Class OMNamespaceImpl

java.lang.Object
  extended by org.apache.axiom.om.impl.OMNamespaceImpl
All Implemented Interfaces:
OMNamespace

Deprecated. OMNamespace instances should always be created using OMFactory.createOMNamespace(String, String). This class will be removed in Axiom 1.3.

public class OMNamespaceImpl
extends Object
implements OMNamespace


Constructor Summary
OMNamespaceImpl(String uri, String prefix)
          Deprecated.  
 
Method Summary
 boolean equals(Object obj)
          Deprecated.  
 boolean equals(String uri, String prefix)
          Deprecated. Method equals.
 String getName()
          Deprecated. Method getName.
 String getNamespaceURI()
          Deprecated. Get the namespace URI.
 String getPrefix()
          Deprecated. Method getPrefix.
 int hashCode()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OMNamespaceImpl

public OMNamespaceImpl(String uri,
                       String prefix)
Deprecated. 
Parameters:
uri -
prefix -
Method Detail

equals

public boolean equals(String uri,
                      String prefix)
Deprecated. 
Method equals.

Specified by:
equals in interface OMNamespace
Parameters:
uri -
prefix -
Returns:
Returns boolean.

equals

public boolean equals(Object obj)
Deprecated. 
Overrides:
equals in class Object

getPrefix

public String getPrefix()
Deprecated. 
Method getPrefix.

Specified by:
getPrefix in interface OMNamespace
Returns:
Returns String.

getName

public String getName()
Deprecated. 
Method getName.

Specified by:
getName in interface OMNamespace
Returns:
Returns String.

getNamespaceURI

public String getNamespaceURI()
Deprecated. 
Description copied from interface: OMNamespace
Get the namespace URI. This method never returns null. It may return an empty string if this instance represents a namespace declaration of type xmlns="". This may be the case for instances returned by OMElement.getAllDeclaredNamespaces(). On the other hand, methods such as OMNamedInformationItem.getNamespace() will return null for information items that have no namespace. In that case the returned string is never empty.

Specified by:
getNamespaceURI in interface OMNamespace
Returns:
the namespace URI

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class Object


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.