|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.platform.util.JVMParameterProvider
public class JVMParameterProvider
Field Summary |
---|
Fields inherited from interface org.pentaho.platform.api.engine.IParameterProvider |
---|
SCOPE_REQUEST, SCOPE_SESSION |
Constructor Summary | |
---|---|
JVMParameterProvider()
|
Method Summary | |
---|---|
Object[] |
getArrayParameter(String name,
Object[] defaultValue)
Retrieve the requested parameter as an Object array |
Date |
getDateParameter(String name,
Date defaultValue)
Retrieve the requested parameter as type java.util.Date. |
BigDecimal |
getDecimalParameter(String name,
BigDecimal defaultValue)
Retrieve the requested parameter as decimal, returning a java.lang.Object. |
Object |
getDecimalParameter(String name,
Object defaultValue)
|
long |
getLongParameter(String name,
long defaultValue)
Retrieve the requested parameter as primitive Java type long. |
Object |
getParameter(String name)
Gets the named parameter from the provider as it's native type |
Iterator |
getParameterNames()
Return list of all avialable parameter names in this provider |
String |
getParameterType(String name)
|
String[] |
getStringArrayParameter(String name,
String[] defaultValue)
Retrieve the requested parameter as a String array |
String |
getStringParameter(String name,
String defaultValue)
Retrieve the requested parameter as type java.lang.String |
boolean |
hasParameter(String name)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JVMParameterProvider()
Method Detail |
---|
public String getStringParameter(String name, String defaultValue)
IParameterProvider
getStringParameter
in interface IParameterProvider
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be found
public long getLongParameter(String name, long defaultValue)
IParameterProvider
getLongParameter
in interface IParameterProvider
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be found
public boolean hasParameter(String name)
hasParameter
in interface IParameterProvider
name
- Name of the parameter to look up
public Date getDateParameter(String name, Date defaultValue)
IParameterProvider
getDateParameter
in interface IParameterProvider
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be found
public Object getDecimalParameter(String name, Object defaultValue)
public Iterator getParameterNames()
IParameterProvider
getParameterNames
in interface IParameterProvider
public String getParameterType(String name)
public Object getParameter(String name)
IParameterProvider
getParameter
in interface IParameterProvider
name
- The name of the parameter to retrieve
public BigDecimal getDecimalParameter(String name, BigDecimal defaultValue)
IParameterProvider
getDecimalParameter
in interface IParameterProvider
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be found
public Object[] getArrayParameter(String name, Object[] defaultValue)
IParameterProvider
getArrayParameter
in interface IParameterProvider
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be found
public String[] getStringArrayParameter(String name, String[] defaultValue)
IParameterProvider
getStringArrayParameter
in interface IParameterProvider
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |