org.apache.jackrabbit.name
Interface NamespaceListener


public interface NamespaceListener

Receives notifications when a namespace mapping changes.


Method Summary
 void namespaceAdded(String prefix, String uri)
          Notifies the listeners that a new namespace uri has been added and mapped to prefix.
 void namespaceRemapped(String oldPrefix, String newPrefix, String uri)
          Notifies the listeners that an existing namespace uri has been re-mapped from oldPrefix to newPrefix.
 

Method Detail

namespaceRemapped

public void namespaceRemapped(String oldPrefix,
                              String newPrefix,
                              String uri)
Notifies the listeners that an existing namespace uri has been re-mapped from oldPrefix to newPrefix.

Parameters:
oldPrefix - the old prefix.
newPrefix - the new prefix.
uri - the associated namespace uri.

namespaceAdded

public void namespaceAdded(String prefix,
                           String uri)
Notifies the listeners that a new namespace uri has been added and mapped to prefix.

Parameters:
prefix - the prefix.
uri - the namespace uri.


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.