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 and Description |
---|
OMNamespaceImpl(String uri,
String prefix)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public boolean equals(String uri, String prefix)
equals
in interface OMNamespace
uri
- prefix
- public String getPrefix()
getPrefix
in interface OMNamespace
public String getName()
getName
in interface OMNamespace
public String getNamespaceURI()
OMNamespace
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.getNamespaceURI
in interface OMNamespace
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.