class DocumentNavigator.OMNamespaceEx extends java.lang.Object implements OMNamespace
| Modifier and Type | Field and Description |
|---|---|
(package private) OMNamespace |
originalNsp |
(package private) OMContainer |
parent |
| Constructor and Description |
|---|
OMNamespaceEx(OMNamespace nsp,
OMContainer parent) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.String uri,
java.lang.String prefix)
Method equals.
|
java.lang.String |
getName()
Method getName.
|
java.lang.String |
getNamespaceURI()
Get the namespace URI.
|
OMContainer |
getParent() |
java.lang.String |
getPrefix()
Get the namespace prefix.
|
final OMNamespace originalNsp
final OMContainer parent
OMNamespaceEx(OMNamespace nsp, OMContainer parent)
public boolean equals(java.lang.String uri,
java.lang.String prefix)
OMNamespaceequals in interface OMNamespacepublic java.lang.String getPrefix()
OMNamespacenull for instances returned by
OMFactory.createOMNamespace(String, String). This indicates that Axiom should
generate a namespace prefix when this instance is passed to one of the factory methods in
OMFactory. In all other cases the return value is not null. In particular, an empty
string indicates that no prefix is used, i.e. that the namespace is used as default
namespace.getPrefix in interface OMNamespacepublic java.lang.String getName()
OMNamespacegetName 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 OMContainer getParent()