org.apache.jackrabbit.base
Class BaseNamespaceRegistry

java.lang.Object
  extended byorg.apache.jackrabbit.base.BaseNamespaceRegistry
All Implemented Interfaces:
NamespaceRegistry

public class BaseNamespaceRegistry
extends Object
implements NamespaceRegistry

NamespaceRegistry base class.


Constructor Summary
protected BaseNamespaceRegistry()
          Protected constructor.
 
Method Summary
 String getPrefix(String uri)
          Implemented by calling getPrefixes() and iterating over the returned prefixes to find the prefix for which getURI(prefix) returns the given namespace URI.
 String[] getPrefixes()
          Not implemented.
 String getURI(String prefix)
          Not implemented.
 String[] getURIs()
          Implemented by calling getPrefixes() and mapping all returned prefixes into namespace URIs using getURI(prefix).
 void registerNamespace(String prefix, String uri)
          Not implemented.
 void unregisterNamespace(String prefix)
          Not implemented.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseNamespaceRegistry

protected BaseNamespaceRegistry()
Protected constructor. This class is only useful when extended.

Method Detail

registerNamespace

public void registerNamespace(String prefix,
                              String uri)
                       throws NamespaceException,
                              UnsupportedRepositoryOperationException,
                              RepositoryException
Not implemented.

Specified by:
registerNamespace in interface NamespaceRegistry
Throws:
NamespaceException
UnsupportedRepositoryOperationException
RepositoryException

unregisterNamespace

public void unregisterNamespace(String prefix)
                         throws NamespaceException,
                                UnsupportedRepositoryOperationException,
                                RepositoryException
Not implemented.

Specified by:
unregisterNamespace in interface NamespaceRegistry
Throws:
NamespaceException
UnsupportedRepositoryOperationException
RepositoryException

getPrefixes

public String[] getPrefixes()
                     throws RepositoryException
Not implemented.

Specified by:
getPrefixes in interface NamespaceRegistry
Throws:
RepositoryException

getURIs

public String[] getURIs()
                 throws RepositoryException
Implemented by calling getPrefixes() and mapping all returned prefixes into namespace URIs using getURI(prefix).

Specified by:
getURIs in interface NamespaceRegistry
Throws:
RepositoryException

getURI

public String getURI(String prefix)
              throws NamespaceException,
                     RepositoryException
Not implemented.

Specified by:
getURI in interface NamespaceRegistry
Throws:
NamespaceException
RepositoryException

getPrefix

public String getPrefix(String uri)
                 throws NamespaceException,
                        RepositoryException
Implemented by calling getPrefixes() and iterating over the returned prefixes to find the prefix for which getURI(prefix) returns the given namespace URI.

Specified by:
getPrefix in interface NamespaceRegistry
Throws:
NamespaceException
RepositoryException


Copyright © 2004-2005 . All Rights Reserved.