|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.platform.engine.services.actionsequence.ActionParameter
public class ActionParameter
| Field Summary |
|---|
| Fields inherited from interface org.pentaho.platform.api.engine.IActionParameter |
|---|
PROMPT_ALLOWED, PROMPT_NEEDED, PROMPT_NEVER, PROMPT_PENDING, TYPE_CONTENT, TYPE_DATE, TYPE_DECIMAL, TYPE_INTEGER, TYPE_LIST, TYPE_OBJECT, TYPE_RESULT_SET, TYPE_STRING |
| Constructor Summary | |
|---|---|
ActionParameter(String name,
String type,
Object value,
List variables,
Object defaultValue)
|
|
| Method Summary | |
|---|---|
void |
addSaveLocation(String location)
|
void |
dispose()
See if we need to do any cleanup here |
String |
getName()
Get the name, or the key for this ActionParameter. |
int |
getPromptStatus()
Returns the prompt status for this parameter. |
int |
getPromptType()
|
List |
getSaveLocations()
|
String |
getSelectionDisplayName()
The display name to use when building a prompt. |
String |
getSelectionNameForValue(String val)
When building a parameter prompt page, what is the name of the prompt |
Map |
getSelectionNameMap()
|
List |
getSelectionValues()
|
String |
getStringValue()
Get the value for this ActionParameter as type String. |
String |
getType()
Return the value type as one of the constants available in this class. |
Object |
getValue()
Get the value for this ActionParameter as a generic Java Object. |
List |
getValueAsList()
Get the value for this ActionParameter as a java.util.List. |
IPentahoResultSet |
getValueAsResultSet()
Get the value for this ActionParameter as a IPentahoResultSet |
List |
getVariables()
|
boolean |
hasDefaultValue()
Check if this ActionParameter has a default value set. |
boolean |
hasSelections()
|
boolean |
hasValue()
Check to se if a value has been set for this parameter. |
boolean |
isDefaultValue()
Check to see if the value returned from thisActionParameter is indeed the default value instead of a value that was set. |
boolean |
isNull()
Check to see if the value (includes the default value) is null. |
void |
setParamSelections(List selValues,
Map selNames,
String displayname)
Deprecated. |
boolean |
setPromptStatus(int status)
Sets the prompt status for this parameter. |
void |
setValue(Object value)
Sets the value object for this ActionParameter. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionParameter(String name,
String type,
Object value,
List variables,
Object defaultValue)
| Method Detail |
|---|
public List getSaveLocations()
public void addSaveLocation(String location)
public List getVariables()
getVariables in interface IActionParameterpublic String getName()
IActionParameter
getName in interface IActionParameterpublic String getType()
IActionParameter
getType in interface IActionParameterpublic String getStringValue()
IActionParameter
getStringValue in interface IActionParameterpublic Object getValue()
IActionParameter
getValue in interface IActionParameterpublic List getValueAsList()
IActionParameter
getValueAsList in interface IActionParameterpublic IPentahoResultSet getValueAsResultSet()
IActionParameter
getValueAsResultSet in interface IActionParameterpublic void setValue(Object value)
IActionParameter
setValue in interface IActionParametervalue - the value Object to be set.public boolean hasDefaultValue()
IActionParameter
hasDefaultValue in interface IActionParameterpublic boolean hasValue()
IActionParameter
hasValue in interface IActionParameterpublic boolean isDefaultValue()
IActionParameter
isDefaultValue in interface IActionParameterpublic boolean isNull()
IActionParameter
isNull in interface IActionParameterpublic void dispose()
IActionParameter
dispose in interface IActionParameterpublic int getPromptType()
public boolean hasSelections()
hasSelections in interface IActionParameterpublic String getSelectionDisplayName()
IActionParameter
getSelectionDisplayName in interface IActionParameterpublic String getSelectionNameForValue(String val)
IActionParameter
getSelectionNameForValue in interface IActionParameterpublic List getSelectionValues()
getSelectionValues in interface IActionParameter
@Deprecated
public void setParamSelections(List selValues,
Map selNames,
String displayname)
setParamSelections in interface IActionParameterpublic Map getSelectionNameMap()
getSelectionNameMap in interface IActionParameterpublic int getPromptStatus()
IActionParameter
getPromptStatus in interface IActionParameterIActionParameter.PROMPT_ALLOWED,
IActionParameter.PROMPT_NEVER,
IActionParameter.PROMPT_NEEDED,
IActionParameter.PROMPT_PENDINGpublic boolean setPromptStatus(int status)
IActionParameter
setPromptStatus in interface IActionParameterstatus - The status to set.
IActionParameter.PROMPT_ALLOWED,
IActionParameter.PROMPT_NEVER,
IActionParameter.PROMPT_NEEDED,
IActionParameter.PROMPT_PENDING
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||