11451146114711481149115011511152
*/ public String getPrefix(String uri) throws NamespaceException { try { return session.getNamespacePrefix(uri); } catch (RepositoryException e) { throw new NamespaceException(e); } }
25782579258025812582258325842585
public String getURI(String prefix) throws NamespaceException { try { return getNamespaceURI(sessionInfo, prefix); } catch (RepositoryException e) { String msg = "Error retrieving namespace uri"; throw new NamespaceException(msg, e); } }
25902591259225932594259525962597
public String getPrefix(String uri) throws NamespaceException { try { return getNamespacePrefix(sessionInfo, uri); } catch (RepositoryException e) { String msg = "Error retrieving namespace prefix"; throw new NamespaceException(msg, e); } }
27282729273027312732273327342735
public String getURI(String prefix) throws NamespaceException { String uri = (String) prefixToURI.get(prefix); if (uri != null) { return uri; } else { throw new NamespaceException(prefix + ": is not a registered namespace prefix."); } }
27372738273927402741274227432744
public String getPrefix(String uri) throws NamespaceException { String prefix = (String) uriToPrefix.get(uri); if (prefix != null) { return prefix; } else { throw new NamespaceException(uri + ": is not a registered namespace uri."); } }
682683684685686687688689
try { return getNamespacePrefix(uri); } catch (NamespaceException e) { throw e; } catch (RepositoryException e) { throw new NamespaceException("Namespace not found: " + uri, e); } }
692693694695696697698699
try { return getNamespaceURI(prefix); } catch (NamespaceException e) { throw e; } catch (RepositoryException e) { throw new NamespaceException("Namespace not found: " + prefix, e); } }
613614615616617618619620
626627628629630631632633
317318319320321322323324325326327
* {@inheritDoc} */ public String getURI(String prefix) throws NamespaceException { String uri = nsContext.getURI(prefix); if (uri == null) { throw new NamespaceException("unknown prefix"); } else if (DUMMY_DEFAULT_URI.equals(uri)) { return Name.NS_DEFAULT_URI; } else { return uri; }