atg.naming
Class NameContextBindingEvent

java.lang.Object
  extended by java.util.EventObject
      extended by atg.naming.NameContextBindingEvent
All Implemented Interfaces:
java.io.Serializable

public class NameContextBindingEvent
extends java.util.EventObject

A NameContextBindingEvent encapsulates the notification that an element has been bound or unbound from a NameContext. The source of the event is the NameContext involved in the binding.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NameContextBindingEvent(java.lang.String pName, java.lang.Object pElement, NameContext pNameContext)
          Constructs a new NameContextBindingEvent
 
Method Summary
 java.lang.Object getElement()
          Returns the element bound to the specified name.
 java.lang.String getName()
          Returns the name to which the element was bound or unbound.
 NameContext getNameContext()
          Returns the NameContext to which the element was bound
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

NameContextBindingEvent

public NameContextBindingEvent(java.lang.String pName,
                               java.lang.Object pElement,
                               NameContext pNameContext)
Constructs a new NameContextBindingEvent

Parameters:
pName - the name to which the element is bound or unbound (relative to the NameContext)
pElement - the element tha is bound or unbound
pNameContext - the NameContext to which the element was bound or unbound
Method Detail

getName

public java.lang.String getName()
Returns the name to which the element was bound or unbound. The name is relative to the NameContext containing the element.


getElement

public java.lang.Object getElement()
Returns the element bound to the specified name.


getNameContext

public NameContext getNameContext()
Returns the NameContext to which the element was bound