org.hdpagination.dataaccess.support
Class NamedParamsList

java.lang.Object
  extended by org.hdpagination.dataaccess.support.NamedParamsList
All Implemented Interfaces:
java.io.Serializable, NamedParams

public class NamedParamsList
extends java.lang.Object
implements NamedParams

A simple implementation of NamedParams.

Since:
1.3.1
Author:
Liangfeng Ren
See Also:
Serialized Form

Constructor Summary
NamedParamsList()
           
 
Method Summary
 void addParam(java.lang.String name, java.lang.Object value)
          Add a new named parameter
 java.util.Set allNames()
          Return the names of all the parameters
 java.lang.Object getValue(java.lang.String name)
          Get the value of parameter based on the parameter name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedParamsList

public NamedParamsList()
Method Detail

getValue

public java.lang.Object getValue(java.lang.String name)
Description copied from interface: NamedParams
Get the value of parameter based on the parameter name

Specified by:
getValue in interface NamedParams
Parameters:
name - parameter name
Returns:

allNames

public java.util.Set allNames()
Description copied from interface: NamedParams
Return the names of all the parameters

Specified by:
allNames in interface NamedParams
Returns:

addParam

public void addParam(java.lang.String name,
                     java.lang.Object value)
Add a new named parameter

Parameters:
name - name of parameter
value - value of parameter


Copyright © 2008 HDPagination All Rights Reserved.