The Meta-Environment API

toolbus.environment
Interface Bindings

All Known Implementing Classes:
ListBindings

interface Bindings

The Bindings interface maintains (at least conceptually) a list of Bindings. Newer bindings appear at the begiing of the list.


Method Summary
 Bindings clone()
           
 Binding get(java.lang.String key)
          Return the first binding of for a given key value
 java.util.List<Binding> getBindingsAsList()
          Returns a copy of the content of the bindings as a list.
 void put(java.lang.String key, Binding binding)
          Introduce a new (key, binding) pair
 void remove(java.lang.String key)
          Remove the first binding for key
 int size()
           
 java.lang.String toString()
           
 

Method Detail

clone

Bindings clone()
Returns:
deep (**** qualify this !!! ****) copy of the Bindings object

size

int size()

get

Binding get(java.lang.String key)
Return the first binding of for a given key value

Parameters:
key -
Returns:
its binding or null

put

void put(java.lang.String key,
         Binding binding)
Introduce a new (key, binding) pair

Parameters:
key -
binding -

remove

void remove(java.lang.String key)
Remove the first binding for key

Parameters:
key -

getBindingsAsList

java.util.List<Binding> getBindingsAsList()
Returns a copy of the content of the bindings as a list.

Returns:
A copy of the content of the bindings as a list.

toString

java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a string representation

The Meta-Environment API