org.formproc.store
Class MapStorer

java.lang.Object
  |
  +--org.formproc.store.AbstractStorer
        |
        +--org.formproc.store.MapStorer
All Implemented Interfaces:
Storer

public class MapStorer
extends AbstractStorer

Implementation of the Storer interface which stores values in a Map. The target object of the form must be of type java.util.Map.

Author:
Anthony Eden

Constructor Summary
MapStorer()
          Construct a new MapStorer.
 
Method Summary
 void store(Form form, java.lang.String name, java.lang.Object value, java.util.Locale locale)
          Store the field data in the target Map.
 
Methods inherited from class org.formproc.store.AbstractStorer
loadConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapStorer

public MapStorer()
Construct a new MapStorer.

Method Detail

store

public void store(Form form,
                  java.lang.String name,
                  java.lang.Object value,
                  java.util.Locale locale)
           throws java.lang.Exception
Store the field data in the target Map. If the field value is null then any existing value for that key will be removed from the map. The form's target object must be of type Map or a ClassCastException will be thrown.

Parameters:
name - The field name
value - The field value
locale - The Locale
form - The form
Throws:
java.lang.Exception


Copyright (c) 2001-2003 Anthony Eden. All Rights Reserved.