public class NSRegistryBasedNamespaceMappings extends AbstractNamespaceMappings
NSRegistryBasedNamespaceMappings
implements a namespace mapping
based on the stable index prefix provided by the namespace registry.Modifier and Type | Method and Description |
---|---|
String |
getPrefix(String uri)
Returns the prefix which is mapped to the given URI.
|
String |
getURI(String prefix)
Returns the URI to which the given prefix is mapped.
|
translateName, translatePath
public String getURI(String prefix) throws javax.jcr.NamespaceException
prefix
- namespace prefixjavax.jcr.NamespaceException
- if the prefix is unknown.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.