org.dbforms.config
Class FieldValues

java.lang.Object
  extended by org.dbforms.config.FieldValues

public class FieldValues
extends Object

New class to deal with a list of FieldValues.
This class uses a delegate pattern: it delegates everything to an Hashtable to do the necessary type transformations.

Author:
hkk

Constructor Summary
FieldValues()
          Creates a new FieldValues object.
FieldValues(FieldValue[] valueArr)
          Creates a new FieldValues object from an input array of FieldValue objects.
 
Method Summary
 void clear()
          Clear the internal hash table.
 Iterator elements()
          Get the Enumeration of the hash table keys.
 FieldValue get(String name)
          Get the FieldValue object having the input name.
 Iterator keys()
          Get the Enumeration of the hash table keys.
 void put(FieldValue value)
          Put the input FieldName object into the internal hash table.
 FieldValue remove(FieldValue value)
          removes the from the internal hash table.
 FieldValue remove(String name)
          removes the from the internal hash table.
 int size()
          Get the size of the internal hash table.
 FieldValue[] toArray()
          Transform this object into a FieldValue array.
 String toString()
          Dump the input FieldValues object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldValues

public FieldValues()
Creates a new FieldValues object.


FieldValues

public FieldValues(FieldValue[] valueArr)
Creates a new FieldValues object from an input array of FieldValue objects.

Parameters:
valueArr - an array of FieldValue objects
Method Detail

clear

public void clear()
Clear the internal hash table.


elements

public Iterator elements()
Get the Enumeration of the hash table keys.

Returns:
the Enumeration of the hash table keys

get

public FieldValue get(String name)
Get the FieldValue object having the input name.

Parameters:
name - Dthe name of the FieldValue object to retrieve
Returns:
the FieldValue object having the input name

keys

public Iterator keys()
Get the Enumeration of the hash table keys.

Returns:
the Enumeration of the hash table keys

put

public void put(FieldValue value)
Put the input FieldName object into the internal hash table.

Parameters:
value - the FieldValue object to store

remove

public FieldValue remove(String name)
removes the from the internal hash table.

Parameters:
name - the FieldValue object to remove
Returns:
DOCUMENT ME!

remove

public FieldValue remove(FieldValue value)
removes the from the internal hash table.

Parameters:
value - the FieldValue object to remove
Returns:
DOCUMENT ME!

size

public int size()
Get the size of the internal hash table.

Returns:
the size of the internal hash table

toArray

public FieldValue[] toArray()
Transform this object into a FieldValue array.

Returns:
the FieldValue array representation of this object

toString

public String toString()
Dump the input FieldValues object

Overrides:
toString in class Object
Returns:
the string representation of the FieldValues object


Copyright © 2002-2006 DbForms. All Rights Reserved.