|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.web.QueryDictionary
public final class QueryDictionary
Represents a collection of keyed data associated with a query. Allows multiple values to be set against a given key.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Dictionary |
---|
Dictionary.Pair<K,V> |
Constructor Summary | |
---|---|
QueryDictionary(boolean caseSensitiveKeys)
|
Method Summary | |
---|---|
int |
add(String key,
String value)
|
void |
clear()
|
boolean |
containsKey(String key)
Tests the existence of a key in the dictionary. |
String |
get(String key)
Retrieves the value for the given key. |
String |
get(String key,
int index)
|
int |
getLength(String key)
|
void |
insert(String key,
String value,
int index)
|
Iterator<String> |
iterator()
|
String |
put(String key,
String value)
Sets the value of the given key, creating a new entry or replacing the existing value. |
String |
remove(String key)
Removes a key/value pair from the map. |
String |
remove(String key,
int index)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryDictionary(boolean caseSensitiveKeys)
Method Detail |
---|
public String get(String key)
Dictionary
get
in interface Dictionary<String,String>
key
- The key whose value is to be returned.
public String get(String key, int index)
public String put(String key, String value)
Dictionary
put
in interface Dictionary<String,String>
key
- The key whose value is to be set.value
- The value to be associated with the given key.
public int add(String key, String value)
public void insert(String key, String value, int index)
public String remove(String key)
Dictionary
remove
in interface Dictionary<String,String>
key
- The key whose mapping is to be removed.
public String remove(String key, int index)
public void clear()
public boolean containsKey(String key)
Dictionary
containsKey
in interface Dictionary<String,String>
key
- The key whose presence in the dictionary is to be tested.
public int getLength(String key)
public Iterator<String> iterator()
iterator
in interface Iterable<String>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |