Package org.appng.api
Interface Options
-
- All Known Implementing Classes:
OptionsImpl
public interface Options
Options
are created from theBeanOption
s of aBean
and contain severalOption
s. They are then passed to the bean, which is either anActionProvider
, aDataProvider
or aFormValidator
.- Author:
- Matthias Herlitzius, Matthias Müller
- See Also:
ActionProvider
,DataProvider
,FormValidator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Boolean
getBoolean(String name, String attribute)
<E extends Enum<E>>
EgetEnum(String name, String attribute, Class<E> type)
Integer
getInteger(String name, String attribute)
Option
getOption(String name)
Returns theOption
with the given name, if present.Set<String>
getOptionNames()
Returns the names of all availableOption
sString
getOptionValue(String name, String attribute)
Returns the attribute with the given name for theOption
with the given name.String
getString(String name, String attribute)
Returns the attribute with the given name for theOption
with the given name.boolean
hasOption(String name)
Checks whether there is anOption
with the given name.
-
-
-
Method Detail
-
getOptionNames
Set<String> getOptionNames()
Returns the names of all availableOption
s- Returns:
- the names of all available
Option
s
-
getOptionValue
String getOptionValue(String name, String attribute)
Returns the attribute with the given name for theOption
with the given name.
-
getString
String getString(String name, String attribute)
Returns the attribute with the given name for theOption
with the given name.
-
getBoolean
Boolean getBoolean(String name, String attribute)
- Parameters:
name
- the name of theOption
to get the attribute fromattribute
- the name of the attribute of theOption
- Returns:
Boolean.TRUE
if the value of the attribute equals to (ignoring case)true
,Boolean.FALSE
otherwise (also if no suchOption
exists)
-
-