org.apache.aries.blueprint.namespace
Class NamespaceHandlerRegistryImpl.NamespaceHandlerSetImpl

java.lang.Object
  extended by org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl.NamespaceHandlerSetImpl
All Implemented Interfaces:
NamespaceHandlerRegistry.NamespaceHandlerSet
Enclosing class:
NamespaceHandlerRegistryImpl

protected class NamespaceHandlerRegistryImpl.NamespaceHandlerSetImpl
extends java.lang.Object
implements NamespaceHandlerRegistry.NamespaceHandlerSet


Constructor Summary
NamespaceHandlerRegistryImpl.NamespaceHandlerSetImpl(java.util.Set<java.net.URI> namespaces, org.osgi.framework.Bundle bundle)
           
 
Method Summary
 void addListener(NamespaceHandlerRegistry.Listener listener)
          Add a new Listener to be called when namespace handlers are registerd or unregistered
 void destroy()
          Destroy this handler set
 NamespaceHandler getNamespaceHandler(java.net.URI namespace)
          Retrieve the NamespaceHandler to use for the given namespace
 java.util.Set<java.net.URI> getNamespaces()
           
 javax.xml.validation.Schema getSchema()
          Obtain a schema to validate the XML for the given list of namespaces
 boolean isComplete()
           
 void registerHandler(java.net.URI uri, NamespaceHandler handler)
           
 void removeListener(NamespaceHandlerRegistry.Listener listener)
          Remove a previously registered Listener
 void unregisterHandler(java.net.URI uri, NamespaceHandler handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceHandlerRegistryImpl.NamespaceHandlerSetImpl

public NamespaceHandlerRegistryImpl.NamespaceHandlerSetImpl(java.util.Set<java.net.URI> namespaces,
                                                            org.osgi.framework.Bundle bundle)
Method Detail

isComplete

public boolean isComplete()
Specified by:
isComplete in interface NamespaceHandlerRegistry.NamespaceHandlerSet

getNamespaces

public java.util.Set<java.net.URI> getNamespaces()
Specified by:
getNamespaces in interface NamespaceHandlerRegistry.NamespaceHandlerSet

getNamespaceHandler

public NamespaceHandler getNamespaceHandler(java.net.URI namespace)
Description copied from interface: NamespaceHandlerRegistry.NamespaceHandlerSet
Retrieve the NamespaceHandler to use for the given namespace

Specified by:
getNamespaceHandler in interface NamespaceHandlerRegistry.NamespaceHandlerSet
Returns:
the NamespaceHandler to use or null if none is available at this time

getSchema

public javax.xml.validation.Schema getSchema()
                                      throws org.xml.sax.SAXException,
                                             java.io.IOException
Description copied from interface: NamespaceHandlerRegistry.NamespaceHandlerSet
Obtain a schema to validate the XML for the given list of namespaces

Specified by:
getSchema in interface NamespaceHandlerRegistry.NamespaceHandlerSet
Returns:
the schema to use to validate the XML
Throws:
org.xml.sax.SAXException
java.io.IOException

addListener

public void addListener(NamespaceHandlerRegistry.Listener listener)
Description copied from interface: NamespaceHandlerRegistry.NamespaceHandlerSet
Add a new Listener to be called when namespace handlers are registerd or unregistered

Specified by:
addListener in interface NamespaceHandlerRegistry.NamespaceHandlerSet
Parameters:
listener - the listener to register

removeListener

public void removeListener(NamespaceHandlerRegistry.Listener listener)
Description copied from interface: NamespaceHandlerRegistry.NamespaceHandlerSet
Remove a previously registered Listener

Specified by:
removeListener in interface NamespaceHandlerRegistry.NamespaceHandlerSet
Parameters:
listener - the listener to unregister

destroy

public void destroy()
Description copied from interface: NamespaceHandlerRegistry.NamespaceHandlerSet
Destroy this handler set

Specified by:
destroy in interface NamespaceHandlerRegistry.NamespaceHandlerSet

registerHandler

public void registerHandler(java.net.URI uri,
                            NamespaceHandler handler)

unregisterHandler

public void unregisterHandler(java.net.URI uri,
                              NamespaceHandler handler)


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.