|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.nodetype.xml.AdditionalNamespaceResolver
public class AdditionalNamespaceResolver
A simple namespace resolver implementation, that uses the additional namespaces declared in an XML element.
| Constructor Summary | |
|---|---|
AdditionalNamespaceResolver(javax.jcr.NamespaceRegistry registry)
Creates a namespace resolver using the namespaces declared in the given namespace registry. |
|
AdditionalNamespaceResolver(java.util.Properties namespaces)
Creates a namespace resolver using the namespaces defined in the given prefix-to-URI property set. |
|
| Method Summary | |
|---|---|
java.lang.String |
getPrefix(java.lang.String uri)
Returns the prefix which is mapped to the given URI. |
java.lang.String |
getURI(java.lang.String prefix)
Returns the URI to which the given prefix is mapped. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdditionalNamespaceResolver(java.util.Properties namespaces)
namespaces - namespace properties
public AdditionalNamespaceResolver(javax.jcr.NamespaceRegistry registry)
throws javax.jcr.RepositoryException
registry - namespace registry
javax.jcr.RepositoryException - on repository errors| Method Detail |
|---|
public java.lang.String getURI(java.lang.String prefix)
throws javax.jcr.NamespaceException
getURI in interface NamespaceResolverprefix - namespace prefix
javax.jcr.NamespaceException - if the prefix is unknown.
public java.lang.String getPrefix(java.lang.String uri)
throws javax.jcr.NamespaceException
getPrefix in interface NamespaceResolveruri - namespace URI
javax.jcr.NamespaceException - if the URI is unknown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||