OMNamespace instances should always be created using
OMFactory.createOMNamespace(String, String). This class will be removed in
Axiom 1.3.public class OMNamespaceImpl extends java.lang.Object implements OMNamespace
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
prefix
Deprecated.
Field prefix
|
private java.lang.String |
uri
Deprecated.
Field uri
|
| Constructor and Description |
|---|
OMNamespaceImpl(java.lang.String uri,
java.lang.String prefix)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Deprecated.
|
boolean |
equals(java.lang.String uri,
java.lang.String prefix)
Deprecated.
Method equals.
|
java.lang.String |
getName()
Deprecated.
Method getName.
|
java.lang.String |
getNamespaceURI()
Deprecated.
Get the namespace URI.
|
java.lang.String |
getPrefix()
Deprecated.
Method getPrefix.
|
int |
hashCode()
Deprecated.
|
private final java.lang.String prefix
private final java.lang.String uri
public OMNamespaceImpl(java.lang.String uri,
java.lang.String prefix)
uri - prefix - public boolean equals(java.lang.String uri,
java.lang.String prefix)
equals in interface OMNamespaceuri - prefix - public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getPrefix()
getPrefix in interface OMNamespacepublic java.lang.String getName()
getName in interface OMNamespacepublic java.lang.String getNamespaceURI()
OMNamespacenull. 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.getNamespaceURI in interface OMNamespacepublic int hashCode()
hashCode in class java.lang.Object