|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IParameters
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 | |
|---|---|
Object |
get(String key)
Returns the value to which the specified key is mapped in this parameters set or in the default or in the default parameter set, when not found. |
List |
getMultiValueParameter(IParameterName key)
Searches for the parameter with the specified key. |
String |
getParameter(IParameterName key)
Searches for the parameter with the specified key. |
boolean |
getParameter(IParameterName key,
boolean defaultValue)
Searches for the parameter with the specified key. |
int |
getParameter(IParameterName key,
int defaultValue)
Searches for the parameter with the specified key. |
String |
getParameter(IParameterName key,
String defaultValue)
Searches for the parameter with the specified key. |
com.sapportals.htmlb.enums.TextViewDesign |
getParameter(IParameterName key,
com.sapportals.htmlb.enums.TextViewDesign defaultValue)
Searches for the parameter with the specified key. |
IParameters |
getParameters(IParameterName[] keys)
|
boolean |
isExactlyValue(IParameterName key,
Object checkValue)
Checks if an entry in the set exists for the specified key, which has the specified value. |
boolean |
isNoOtherValue(IParameterName key,
Object checkValue)
Checks for a key if no other value than the specified value is set. |
IParameterNameSet |
parameterNames()
Returns an enumeration of all the keys in this parameter set, including the keys in the default parameter set and all included paramters. |
Set |
parameters()
Returns a Set view of the parameters contained in this parameters set. |
void |
removeParameter(IParameterName key)
removes the parameter specified from the paramters map. |
Boolean |
setParameter(IParameterName key,
boolean value)
Calls the map.put(key, value) method. |
Integer |
setParameter(IParameterName key,
int value)
Calls the map.put(key, value) method. |
Object |
setParameter(IParameterName key,
Object value)
|
String |
setParameter(IParameterName key,
String value)
Calls the map.put(key, value) method. |
com.sapportals.htmlb.enums.TextViewDesign |
setParameter(IParameterName key,
com.sapportals.htmlb.enums.TextViewDesign value)
Calls the map.put(key, value) method. |
| Method Detail |
|---|
Object setParameter(IParameterName key,
Object value)
String setParameter(IParameterName key,
String value)
map.put(key, value) method. This method is parrallel to the String
getParameter(IParameterName key) method.
key - The key for the new Parametervalue - The value for the new Parameter
NullpointerException - if the key or the value is null
Integer setParameter(IParameterName key,
int value)
map.put(key, value) method. This method is parrallel to the String
getParameter(IParameterName key) method. Here an int can be provided. The value will be
stored as String .
key - The key for the new Parametervalue - The value for the new Parameter
NullpointerException - if the key or the value is null
ClassCastException - if the old value is not a String
NumberFormatException - - if the old value cannot be parsed as an int.
com.sapportals.htmlb.enums.TextViewDesign setParameter(IParameterName key,
com.sapportals.htmlb.enums.TextViewDesign value)
map.put(key, value) method. This method is parrallel to the String
getParameter(IParameterName key) method. Here an TextViewDesign can be provided. The value
will be stored as String .
key - The key for the new Parametervalue - The value for the new Parameter
NullpointerException - if the key or the value is null
ClassCastException - if the old value is not a String
Boolean setParameter(IParameterName key,
boolean value)
map.put(key, value) method. This method is parrallel to the String
getParameter(IParameterName key) method. Here an int can be provided. The value will be
stored as String .
key - The key for the new Parametervalue - The value for the new Parameter
NullpointerException - if the key or the value is null
ClassCastException - if the old value is not a Stringvoid removeParameter(IParameterName key)
Object get(String key)
key - a key of the parameter.
null if the key is not mapped
to any value in this parameters set or in the default.#put(Object, Object)IParameterNameSet parameterNames()
EnumerationSet parameters()
entrySet()
this set is not backed up by the map, but it contains all paramters accessible via this Paramters
map, this means, all paramters contained in the map, in the default map and in all included parameter sets.
IParameters getParameters(IParameterName[] keys)
String getParameter(IParameterName key)
null if the
parameter is not found.
key - the parameters key.
List getMultiValueParameter(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.
String getParameter(IParameterName key,
String defaultValue)
key - the parameters key.defaultValue -
int getParameter(IParameterName key,
int defaultValue)
int if possible.
key - the parameters key.defaultValue - a default value.
boolean getParameter(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.
com.sapportals.htmlb.enums.TextViewDesign getParameter(IParameterName key,
com.sapportals.htmlb.enums.TextViewDesign defaultValue)
TextViewDesign . If the stored String
can not be converted into a TextViewDesign null is returned.
key - the parameters key.defaultValue - a default value.
boolean isNoOtherValue(IParameterName key,
Object checkValue)
Object get(Object key) method an true is returned
when no value is not found or the found value equals the specified value.
key - the paramters key to searchcheckValue - the value to compare with
get(Object key)
boolean isExactlyValue(IParameterName key,
Object checkValue)
Object get(Object key) method an true is returned
when a value is found which equals the specified value.
key - the paramters key to searchcheckValue - the value to compare with
get(Object key)| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||