|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.core.AbstractInput
public abstract class AbstractInput
| Constructor Summary | |
|---|---|
AbstractInput()
|
|
| Method Summary | ||
|---|---|---|
boolean |
getBoolean(String name)
Calls getStringValue() and tries to convert the string to boolean. |
|
boolean |
getBoolean(String name,
boolean def)
|
|
boolean |
getBooleanValue(String name)
Deprecated. use getBoolean instead |
|
boolean |
getBooleanValue(String name,
boolean def)
Deprecated. use getBoolean instead |
|
Date |
getDate(String name)
Parse a parameter value from this input as a Date. |
|
Date |
getDate(String name,
int style)
Parse a parameter value from this action input as a Date using the given style. |
|
Date |
getDate(String name,
String pattern)
Parse a parameter value from this action input as a Date using the given pattern. |
|
double |
getDouble(String name)
Calls getString() and tries to convert the string to a double. |
|
double |
getDouble(String name,
double def)
|
|
double |
getDoubleValue(String name)
Deprecated. use getDouble instead |
|
double |
getDoubleValue(String name,
double def)
Deprecated. use getDouble instead |
|
|
getEnum(String key,
Class<E> enumClass)
Convert the parameter value from this action input as an Enum. |
|
|
getEnums(String key,
Class<E> enumClass)
Convert the parameter value from this action input as an Array of Enums. |
|
float |
getFloat(String name)
Calls getString() and tries to convert the string to a float. |
|
float |
getFloat(String name,
float def)
|
|
float |
getFloatValue(String name)
Deprecated. use getFloat instead |
|
float |
getFloatValue(String name,
float def)
Deprecated. use getFloat instead |
|
int |
getInt(String name)
|
|
int |
getInt(String name,
int def)
|
|
int[] |
getInts(String name)
|
|
int |
getIntValue(String name)
Deprecated. use getInt instead |
|
int |
getIntValue(String name,
int def)
Deprecated. use getInt instead |
|
int[] |
getIntValues(String name)
Deprecated. Use getInts instead |
|
protected abstract Locale |
getLocale()
|
|
long |
getLong(String name)
Calls getString() and tries to convert the string to a long. |
|
long |
getLong(String name,
long def)
|
|
long[] |
getLongs(String name)
Gets all parameter values with the given name as an long array. |
|
long |
getLongValue(String name)
Deprecated. use getLong instead |
|
long |
getLongValue(String name,
long def)
Deprecated. use getLong instead |
|
|
getObject(Class<? extends E> klass)
Gets a populated object with the values from the action input. |
|
|
getObject(Class<? extends E> klass,
boolean convertBoolean)
|
|
|
getObject(Class<? extends E> klass,
String prefix)
Gets a populated object with the values from the action input. |
|
|
getObject(Class<? extends E> klass,
String prefix,
boolean convertBoolean)
|
|
|
getObject(E bean,
boolean convertBoolean)
|
|
|
getObject(E bean,
String prefix,
boolean convertBoolean)
|
|
|
getObject(E target,
String prefix,
boolean tryField,
boolean tryToConvert,
boolean convertBoolean)
|
|
void |
inject(Object bean)
Populates (inject properties) the bean with the values from the input. |
|
void |
inject(Object bean,
String prefix)
Populates (inject properties) the bean with the values from the input. |
|
static boolean |
isB()
|
|
static void |
main(String[] args)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mentawai.core.Input |
|---|
getHeader, getHeaderKeys, getProperty, getString, getStrings, getStringValue, getStringValues, getValue, has, hasValue, keys, removeValue, setValue |
| Constructor Detail |
|---|
public AbstractInput()
| Method Detail |
|---|
public boolean getBoolean(String name)
getBoolean in interface Inputpublic boolean getBooleanValue(String name)
Input
getBooleanValue in interface Inputname - the parameter's name
public boolean getBoolean(String name,
boolean def)
getBoolean in interface Input
public boolean getBooleanValue(String name,
boolean def)
Input
getBooleanValue in interface Inputname - the parameter's namedef - default value to return
public Date getDate(String name)
Input
getDate in interface Inputname - the parameter's name
public Date getDate(String name,
int style)
Input
getDate in interface Inputname - the parameter's namestyle - the DateFormat style to be used
public Date getDate(String name,
String pattern)
Input
getDate in interface Inputname - the parameter's namepattern - The SimpleDateFormat pattern to be used
protected abstract Locale getLocale()
public double getDouble(String name)
getDouble in interface Inputpublic double getDoubleValue(String name)
Input
getDoubleValue in interface Inputname - the parameter's name
public double getDouble(String name,
double def)
getDouble in interface Input
public double getDoubleValue(String name,
double def)
Input
getDoubleValue in interface Inputname - the parameter's namedef - default value to return
public float getFloat(String name)
getFloat in interface Inputpublic float getFloatValue(String name)
Input
getFloatValue in interface Inputname - the parameter's name
public float getFloat(String name,
float def)
getFloat in interface Input
public float getFloatValue(String name,
float def)
Input
getFloatValue in interface Inputname - the parameter's namedef - default value to return
public int getIntValue(String name)
Input
getIntValue in interface Inputname - the parameter's name
public int getInt(String name)
getInt in interface Input
public int getIntValue(String name,
int def)
Input
getIntValue in interface Inputname - the parameter's namedef - default value to return
public int getInt(String name,
int def)
getInt in interface Inputpublic int[] getInts(String name)
getInts in interface Inputpublic int[] getIntValues(String name)
Input
getIntValues in interface Inputname - the parameters'name
public long getLong(String name)
getLong in interface Inputpublic long[] getLongs(String name)
Input
getLongs in interface Inputname - the parameters'name
public long getLongValue(String name)
Input
getLongValue in interface Inputname - the parameter's name
public long getLong(String name,
long def)
getLong in interface Input
public long getLongValue(String name,
long def)
Input
getLongValue in interface Inputname - the parameter's namedef - default value to return
public <E> E getObject(Class<? extends E> klass)
Input
getObject in interface Input
public <E> E getObject(Class<? extends E> klass,
boolean convertBoolean)
public <E> E getObject(Class<? extends E> klass,
String prefix)
Input
getObject in interface Input
public <E> E getObject(Class<? extends E> klass,
String prefix,
boolean convertBoolean)
public void inject(Object bean)
Input
inject in interface Input
public <E> E getObject(E bean,
boolean convertBoolean)
public void inject(Object bean,
String prefix)
Input
inject in interface Input
public <E> E getObject(E bean,
String prefix,
boolean convertBoolean)
public <E> E getObject(E target,
String prefix,
boolean tryField,
boolean tryToConvert,
boolean convertBoolean)
public <E extends Enum<E>> E getEnum(String key,
Class<E> enumClass)
Input
getEnum in interface Inputkey - the parameter's nameenumClass - the Enum's class
public <E extends Enum<E>> Set<E> getEnums(String key,
Class<E> enumClass)
Input
getEnums in interface Inputkey - the parameter's nameenumClass - the Enum's class
public static boolean isB()
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||