|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.core.AbstractInput
org.mentawai.core.MapInput
public class MapInput
A simple Input that can be used for testing.
| Constructor Summary | |
|---|---|
MapInput()
|
|
MapInput(Map<String,Object> values)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.mentawai.core.AbstractInput |
|---|
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, main |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapInput()
public MapInput(Map<String,Object> values)
| Method Detail |
|---|
public void setLocale(Locale loc)
public void setHeader(String name,
String value)
public String getHeader(String name)
Input
name - the header name
public Iterator<String> getHeaderKeys()
Input
public void setProperty(String name,
String value)
public String getProperty(String name)
Input
name - the name of the property
public boolean hasValue(String name)
Input
name - The name of the key.
public boolean has(String key)
Input
public String getStringValue(String name)
Input
name - the parameter's name
public String getString(String name)
public Iterator<String> keys()
Input
public void removeValue(String name)
Input
name - the name of the parameter to remove.public String[] getStringValues(String name)
Input
name - the parameters'name
public String[] getStrings(String name)
public void setValue(String name,
Object value)
Input
name - the name of the parametervalue - the parameter value (any object)public Object getValue(String name)
Input
name - the name of the parameter
protected Locale getLocale()
getLocale in class AbstractInput
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||