|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
edu.indiana.dlib.metsnav.config.parameter.ParameterMap
public class ParameterMap
This is a class that can be used to contain all URL parameters and their
possible values for an action class. It keeps a HashMap - the parameter
name as the key, and a list of its possible values as the value in the hash.
It extends from the class java.util.Properties
. For each
parameter, it also keeps a single value as the current parameter value.
Field Summary |
---|
Fields inherited from class java.util.Properties |
---|
defaults |
Constructor Summary | |
---|---|
ParameterMap()
Creates a new instance |
Method Summary | |
---|---|
Object |
clone()
This is a deep clone method which returns a cloned instance of ParameterMap . |
int |
getNumberOfValues(String key)
Returns number of possible values for the key |
String |
getPrintedParameter(String parameter)
Returns the parameter as a url parameter |
String |
getPrintedParameters()
Returns a string of all parameter-value pair in URL format |
String |
getValue(String key)
Returns the value for a paramter key |
String |
getValueAtIndex(String key,
int index)
Returns the value at certain index in the possible value list for a parameter key |
HashMap |
getValueMap()
Returns the valueMap |
List |
getValuesOf(String key)
Returns all possible values of a parameter key |
String |
print()
Returns URL formatted string for all parameters. |
String |
print(String key)
Returns a URL parameter string for a property with key |
void |
putValues(String key,
List valueList)
Set possible values for a parameter key |
void |
setValueMap(HashMap map)
Sets the valueMap |
String |
toString()
|
Methods inherited from class java.util.Properties |
---|
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML |
Methods inherited from class java.util.Hashtable |
---|
clear, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParameterMap()
Method Detail |
---|
public Object clone()
ParameterMap
.
clone
in class Hashtable<Object,Object>
ParameterMap
public int getNumberOfValues(String key)
key
-
public String getPrintedParameter(String parameter)
parameter
-
public String getPrintedParameters()
public String getValue(String key)
key
-
public String getValueAtIndex(String key, int index)
key
- index
-
public HashMap getValueMap()
public List getValuesOf(String key)
key
-
public String print()
&key1=value1&key2=value2&key3=value3...
public String print(String key)
key
-
public void putValues(String key, List valueList)
key
- valueList
- public void setValueMap(HashMap map)
map
- public String toString()
toString
in class Hashtable<Object,Object>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |