public abstract class NameValuePairs extends Object
Properties
,
Parameters
Modifier and Type | Class and Description |
---|---|
static class |
NameValuePairs.Entry |
Modifier | Constructor and Description |
---|---|
protected |
NameValuePairs() |
Modifier and Type | Method and Description |
---|---|
void |
add(String aName,
String aValue) |
void |
add(String aName,
String[] aValues) |
protected NameValuePairs.Entry |
findEntry(String aName) |
Boolean |
getBoolean(String aName) |
boolean |
getBoolean(String aName,
boolean aDefault) |
Boolean |
getBoolean(String aName,
Boolean aDefault) |
Integer |
getInteger(String aName) |
int |
getInteger(String aName,
int aDefault) |
Integer |
getInteger(String aName,
Integer aDefault) |
String |
getString(String aName)
Returns the value for the given name as string,
or
null if there is no pair with the given name. |
String |
getString(String aName,
String aDefault)
Returns the value for the given name as string,
or the given default if there is no pair with the given name.
|
String[] |
getStrings(String aName)
Returns all values for the given name as a string array,
or
null if there is no pair with the given name. |
Iterator |
keys() |
Iterator |
names() |
protected void |
removeEntry(String aName) |
void |
setParent(NameValuePairs aParent) |
int |
size()
Returns the number of name/value pairs.
|
String |
toString() |
public int size()
public String getString(String aName)
null
if there is no pair with the given name.aName
- the name of a pairpublic String getString(String aName, String aDefault)
aName
- the name of a pairaDefault
- the default valuepublic String[] getStrings(String aName)
null
if there is no pair with the given name.aName
- the name of a pairpublic int getInteger(String aName, int aDefault)
public boolean getBoolean(String aName, boolean aDefault)
public Iterator names()
public final Iterator keys()
public void setParent(NameValuePairs aParent)
protected NameValuePairs.Entry findEntry(String aName)
protected void removeEntry(String aName)
Copyright © 2018 City of Paris. All rights reserved.