public abstract class AbstractNamespaceResolver extends Object implements NamespaceResolver
NamespaceListeners. To enable listener support call the constructor
 with supportListeners set to true. The default
 constructor will not enable listener support and all listener related
 methods will throw an UnsupportedOperationException in that case.| Constructor and Description | 
|---|
| AbstractNamespaceResolver()Deprecated.  Creates a  AbstractNamespaceResolverwithout listener
 support. | 
| AbstractNamespaceResolver(boolean supportListeners)Deprecated.  Creates a  AbstractNamespaceResolverwith listener support ifsupportListenersis set totrue. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addListener(NamespaceListener listener)Deprecated.  Registers  listenerto get notifications when namespace
 mappings change. | 
| protected void | notifyNamespaceAdded(String prefix,
                    String uri)Deprecated.  Notifies the listeners that a new namespace  urihas been
 added and mapped toprefix. | 
| protected void | notifyNamespaceRemapped(String oldPrefix,
                       String newPrefix,
                       String uri)Deprecated.  Notifies listeners that an existing namespace uri has been remapped
 to a new prefix. | 
| protected void | notifyNamespaceRemoved(String uri)Deprecated.  Notifies the listeners that the namespace with the given  urihas been removed from the mapping. | 
| void | removeListener(NamespaceListener listener)Deprecated.  Removes the  listenerfrom thisNamespaceRegistery. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPrefix, getURIpublic AbstractNamespaceResolver()
AbstractNamespaceResolver without listener
 support.public AbstractNamespaceResolver(boolean supportListeners)
AbstractNamespaceResolver with listener support if
 supportListeners is set to true.supportListeners - if true listener are supported by
                         this instance.public void addListener(NamespaceListener listener)
listener to get notifications when namespace
 mappings change.listener - the listener to register.UnsupportedOperationException - if listener support is not enabled
                                       for this AbstractNamespaceResolver.public void removeListener(NamespaceListener listener)
listener from this NamespaceRegistery.listener - the listener to remove.UnsupportedOperationException - if listener support is not enabled
                                       for this AbstractNamespaceResolver.protected void notifyNamespaceAdded(String prefix, String uri)
uri has been
 added and mapped to prefix.prefix - the prefix.uri - the namespace uri.protected void notifyNamespaceRemapped(String oldPrefix, String newPrefix, String uri)
oldPrefix - the old prefix.newPrefix - the new prefix.uri - the associated namespace uri.protected void notifyNamespaceRemoved(String uri)
uri
 has been removed from the mapping.uri - the namespace uri.NamespaceListener.namespaceRemoved(String)Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.