Class AbstractNamespaceResolver

    • Constructor Detail

      • AbstractNamespaceResolver

        public AbstractNamespaceResolver()
        Deprecated.
        Creates a AbstractNamespaceResolver without listener support.
      • AbstractNamespaceResolver

        public AbstractNamespaceResolver​(boolean supportListeners)
        Deprecated.
        Creates a AbstractNamespaceResolver with listener support if supportListeners is set to true.
        Parameters:
        supportListeners - if true listener are supported by this instance.
    • Method Detail

      • addListener

        public void addListener​(NamespaceListener listener)
        Deprecated.
        Registers listener to get notifications when namespace mappings change.
        Parameters:
        listener - the listener to register.
        Throws:
        UnsupportedOperationException - if listener support is not enabled for this AbstractNamespaceResolver.
      • removeListener

        public void removeListener​(NamespaceListener listener)
        Deprecated.
        Removes the listener from this NamespaceRegistery.
        Parameters:
        listener - the listener to remove.
        Throws:
        UnsupportedOperationException - if listener support is not enabled for this AbstractNamespaceResolver.
      • notifyNamespaceAdded

        protected void notifyNamespaceAdded​(String prefix,
                                            String uri)
        Deprecated.
        Notifies the listeners that a new namespace uri has been added and mapped to prefix.
        Parameters:
        prefix - the prefix.
        uri - the namespace uri.
      • notifyNamespaceRemapped

        protected void notifyNamespaceRemapped​(String oldPrefix,
                                               String newPrefix,
                                               String uri)
        Deprecated.
        Notifies listeners that an existing namespace uri has been remapped to a new prefix.
        Parameters:
        oldPrefix - the old prefix.
        newPrefix - the new prefix.
        uri - the associated namespace uri.
      • notifyNamespaceRemoved

        protected void notifyNamespaceRemoved​(String uri)
        Deprecated.
        Notifies the listeners that the namespace with the given uri has been removed from the mapping.
        Parameters:
        uri - the namespace uri.
        See Also:
        NamespaceListener.namespaceRemoved(String)