org.nodal.util
Interface BindingContext

All Known Implementing Classes:
BindingContexts

public interface BindingContext

A "global" mapping from Name to Object. Created on Jul 17, 2003

Author:
leei

Method Summary
 java.lang.Object bind(Name nm, java.lang.Object val)
          Bind a value to the given Name.
 java.lang.Object bound(Name nm)
          Obtain the Object bound to a particular Name.
 

Method Detail

bound

public java.lang.Object bound(Name nm)
Obtain the Object bound to a particular Name.

Parameters:
nm - the Name to use as a reference
Returns:
the Object bound if one exists, or null if not.

bind

public java.lang.Object bind(Name nm,
                             java.lang.Object val)
Bind a value to the given Name.

Parameters:
nm - the Name to use for this binding
val - the Object to use as a value
Returns:
any previous binding for the Name nm