org.webmacro.util
Interface Bag

All Known Implementing Classes:
Form, FormList, LocaleTool

public interface Bag

A dictionary like interface, but more restricted--provides a common interface for generic containers which are less functional than a dictionary, but similar in nature.


Method Summary
 java.lang.Object get(java.lang.String itemName)
          Get an item from the bag
 void put(java.lang.String itemName, java.lang.Object item)
          Add an item to the bag
 void remove(java.lang.String itemName)
          Remove an item from the bag
 

Method Detail

put

public void put(java.lang.String itemName,
                java.lang.Object item)
         throws UnsettableException
Add an item to the bag

Throws:
UnsettableException

get

public java.lang.Object get(java.lang.String itemName)
Get an item from the bag


remove

public void remove(java.lang.String itemName)
            throws UnsettableException
Remove an item from the bag

Throws:
UnsettableException