org.apache.axiom.om
Interface OMNamespace

All Known Implementing Classes:
OMNamespaceImpl

public interface OMNamespace

Interface OMNamespace.

Implementations of this interface must be immutable or behave as if they were immutable, i.e. getPrefix() and getNamespaceURI() must always return the same values when invoked on the same instance.

Implementations must override Object.equals(Object) and Object.hashCode(). Two OMNamespace instances are considered equal if their namespace URIs and prefixes are equal.


Method Summary
 boolean equals(java.lang.String uri, java.lang.String prefix)
          Method equals.
 java.lang.String getName()
          Deprecated. This method is deprecated. Please use getNamespaceURI() method instead.
 java.lang.String getNamespaceURI()
          Provides the namespace URI of this namespace.
 java.lang.String getPrefix()
          Method getPrefix.
 

Method Detail

equals

boolean equals(java.lang.String uri,
               java.lang.String prefix)
Method equals.

Parameters:
uri -
prefix -
Returns:
Returns boolean.

getPrefix

java.lang.String getPrefix()
Method getPrefix.

Returns:
Returns String.

getName

java.lang.String getName()
Deprecated. This method is deprecated. Please use getNamespaceURI() method instead.

Method getName.

Returns:
Returns String.

getNamespaceURI

java.lang.String getNamespaceURI()
Provides the namespace URI of this namespace.

Returns:
- the namespace URI of the namespace.


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