public class MapInput extends AbstractInput
| Constructor and Description |
|---|
MapInput() |
MapInput(Map<String,Object> values) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHeader(String name)
Gets a header value from this input.
|
Iterator<String> |
getHeaderKeys()
Gets an iterator with all header names.
|
protected Locale |
getLocale() |
String |
getProperty(String name)
Gets a property associated with this input.
|
String |
getString(String name) |
String[] |
getStrings(String name) |
String |
getStringValue(String name)
Deprecated.
use getString instead
|
String[] |
getStringValues(String name)
Deprecated.
use getStrings instead
|
Object |
getValue(String name)
Gets a parameter value (any object) with the given name.
|
boolean |
has(String key)
Check if the input has this key (Shorter verions of hasValue)
|
boolean |
hasValue(String name)
Checks if a value exists.
|
Iterator<String> |
keys()
Gets an iterator with all the parameter names.
|
void |
removeValue(String name)
Removes a parameter from this input.
|
void |
setHeader(String name,
String value) |
void |
setLocale(Locale loc) |
void |
setProperty(String name,
String value) |
void |
setValue(String name,
Object value)
Sets a parameter value with the given name.
|
getBoolean, getBoolean, getBooleanValue, getBooleanValue, getDate, getDate, getDate, getDouble, getDouble, getDoubleValue, getDoubleValue, getEnum, getEnums, getFloat, getFloat, getFloatValue, getFloatValue, getInt, getInt, getInts, getIntValue, getIntValue, getIntValues, getLong, getLong, getLongs, getLongValue, getLongValue, getObject, getObject, getObject, getObject, getObject, getObject, getObject, inject, inject, isB, mainpublic void setLocale(Locale loc)
public String getHeader(String name)
Inputname - the header namepublic Iterator<String> getHeaderKeys()
Inputpublic String getProperty(String name)
Inputname - the name of the propertypublic boolean hasValue(String name)
Inputname - The name of the key.public boolean has(String key)
Inputpublic String getStringValue(String name)
Inputname - the parameter's namepublic Iterator<String> keys()
Inputpublic void removeValue(String name)
Inputname - the name of the parameter to remove.public String[] getStringValues(String name)
Inputname - the parameters'namepublic void setValue(String name, Object value)
Inputname - the name of the parametervalue - the parameter value (any object)public Object getValue(String name)
Inputname - the name of the parameterprotected Locale getLocale()
getLocale in class AbstractInputCopyright © 2015. All Rights Reserved.