org.apache.aries.blueprint.container
Interface NamespaceHandlerRegistry.NamespaceHandlerSet

All Known Implementing Classes:
NamespaceHandlerRegistryImpl.NamespaceHandlerSetImpl
Enclosing interface:
NamespaceHandlerRegistry

public static interface NamespaceHandlerRegistry.NamespaceHandlerSet

Interface used to managed a set of namespace handlers


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 removeListener(NamespaceHandlerRegistry.Listener listener)
          Remove a previously registered Listener
 

Method Detail

getNamespaces

java.util.Set<java.net.URI> getNamespaces()

isComplete

boolean isComplete()

getNamespaceHandler

NamespaceHandler getNamespaceHandler(java.net.URI namespace)
Retrieve the NamespaceHandler to use for the given namespace

Returns:
the NamespaceHandler to use or null if none is available at this time

getSchema

javax.xml.validation.Schema getSchema()
                                      throws org.xml.sax.SAXException,
                                             java.io.IOException
Obtain a schema to validate the XML for the given list of namespaces

Returns:
the schema to use to validate the XML
Throws:
org.xml.sax.SAXException
java.io.IOException

addListener

void addListener(NamespaceHandlerRegistry.Listener listener)
Add a new Listener to be called when namespace handlers are registerd or unregistered

Parameters:
listener - the listener to register

removeListener

void removeListener(NamespaceHandlerRegistry.Listener listener)
Remove a previously registered Listener

Parameters:
listener - the listener to unregister

destroy

void destroy()
Destroy this handler set



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