Returns the namespace prefix that the specified namespace URI is
associated with. Returns the specified default prefix if the specified
namespace URI has not been bound to a prefix. To bind a namespace URI
to a prefix, call the
putNamespacePrefix
method.
Returns:
the prefix that is associated with the specified namespace URI,
or
defaultPrefix
if the URI is not registered. If
the namespace URI is registered but has no prefix, an empty string
(
""
) is returned.
Parameters:
-
namespaceURI - a namespace URI
-
defaultPrefix - the prefix to be returned in the event that the
the specified namespace URI has not been bound to a prefix.
Throws:
-
NullPointerException - if
namespaceURI
is
null
See Also:
XMLCryptoContext.putNamespacePrefix(String, String)
,