|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The Parameters is a set of parameters used within the com.sapportals.rendering package.
It provides a Properties like access to values with a default mechanism. A default Parameters
object can be provided which is used, when a value is not found in the current object and in the
getParameter methods a default value can be provided. Null key's or values are not permitted. All values are
stored as String and can be retrieved as int or boolean as well. A
special paramter with the key IParameterName.PARAMETERSET can be used to include
other paramters sets within this paramter set. All included paramters sets are used to search for a
key, if this key is not found in the main set.
| Method Summary | |
IParameterMap[] |
getAllParameters()
|
List |
getMultiValueParameter(IFlavor context,
IParameterName key)
Searches for the parameter with the specified key. |
String |
getParameter(IFlavor context,
IParameterName key)
Searches for the parameter with the specified key. |
boolean |
getParameter(IFlavor context,
IParameterName key,
boolean defaultValue)
Searches for the parameter with the specified key. |
int |
getParameter(IFlavor context,
IParameterName key,
int defaultValue)
Searches for the parameter with the specified key. |
String |
getParameter(IFlavor context,
IParameterName key,
String defaultValue)
|
IParameterMap |
getParameters(IFlavor context,
IParameterName[] keys)
|
void |
removeParameter(IFlavor context,
IParameterName key)
|
IParameterMap |
setCollectionRendererSet(IFlavor context,
IParameterMap impParameters)
|
Object |
setParameter(IFlavor context,
IParameterName key,
Object value)
|
IParameterMap |
setResourceRendererSet(IFlavor context,
IParameterMap impParameters)
|
| Method Detail |
public List getMultiValueParameter(IFlavor context,
IParameterName key)
null if the
parameter is not found.
The parameter is returned as java.util.List , even if it is
a single Value Parameter. The class of the returned objects in the list
can be asked via
key.getMetaDate().getParameterClass()
key - the parameters key.
public String getParameter(IFlavor context,
IParameterName key)
null if the
parameter is not found.
key - the parameters key.
public String getParameter(IFlavor context,
IParameterName key,
String defaultValue)
public int getParameter(IFlavor context,
IParameterName key,
int defaultValue)
int if possible.
key - the parameters key.defaultValue - a default value.
public boolean getParameter(IFlavor context,
IParameterName key,
boolean defaultValue)
boolean . The boolean returned
represents the value true if the parameters value is equal, ignoring case, to the string "true"
.
Example: Boolean.valueOf("True") returns true .
Example: Boolean.valueOf("yes") returns false .
key - the parameters key.defaultValue - a default value.
public IParameterMap getParameters(IFlavor context,
IParameterName[] keys)
public IParameterMap[] getAllParameters()
public Object setParameter(IFlavor context,
IParameterName key,
Object value)
throws LayoutServiceConfigLoadException
LayoutServiceConfigLoadException
public void removeParameter(IFlavor context,
IParameterName key)
public IParameterMap setCollectionRendererSet(IFlavor context,
IParameterMap impParameters)
throws LayoutServiceConfigLoadException
LayoutServiceConfigLoadException
public IParameterMap setResourceRendererSet(IFlavor context,
IParameterMap impParameters)
throws LayoutServiceConfigLoadException
LayoutServiceConfigLoadException
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||