atg.naming
Interface NameContext

All Superinterfaces:
java.util.EventListener, NameContextBindingListener, NameContextElement
All Known Subinterfaces:
NameContextBindingEventSource
All Known Implementing Classes:
EventHandlerRegistry, GenericContext, NameContextImpl, Nucleus, RequestScopeManager

public interface NameContext
extends NameContextElement

A NameContext represents an interface for binding String names to Object "elements". The interface includes methods for putting, getting, removing and listing elements, as well as testing to see if an element is bound.

A NameContext also implements NameContextElement, meaning that it may itself be bound into another NameContext, and has a property "nameContext" containing the NameContext into which it has been bound. This allows NameResolvers to navigate through a hierarchy of NameContexts.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Method Summary
 java.lang.Object getElement(java.lang.String pName)
          Returns the element bound to the specified name.
 boolean isElementBound(java.lang.String pName)
          Returns true if the name has an element bound to it, false if not.
 java.util.Enumeration listElementNames()
          Returns the list of element names as an Enumeration
 java.util.Enumeration listElements()
          Returns the list of bound elements as an Enumeration
 void putElement(java.lang.String pName, java.lang.Object pElement)
          Binds the specified element to the specified name.
 void removeElement(java.lang.String pName)
          Removes the binding for the specified name.
 
Methods inherited from interface atg.naming.NameContextElement
getName, getNameContext
 
Methods inherited from interface atg.naming.NameContextBindingListener
nameContextElementBound, nameContextElementUnbound
 

Field Detail

CLASS_VERSION

static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values
Method Detail

getElement

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


putElement

void putElement(java.lang.String pName,
                java.lang.Object pElement)
Binds the specified element to the specified name.


removeElement

void removeElement(java.lang.String pName)
Removes the binding for the specified name.


isElementBound

boolean isElementBound(java.lang.String pName)
Returns true if the name has an element bound to it, false if not.


listElementNames

java.util.Enumeration listElementNames()
Returns the list of element names as an Enumeration


listElements

java.util.Enumeration listElements()
Returns the list of bound elements as an Enumeration