|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 IActionParameter
public String getName()
IActionParameter
getName
in interface IActionParameter
public String getType()
IActionParameter
getType
in interface IActionParameter
public String getStringValue()
IActionParameter
getStringValue
in interface IActionParameter
public Object getValue()
IActionParameter
getValue
in interface IActionParameter
public List getValueAsList()
IActionParameter
getValueAsList
in interface IActionParameter
public IPentahoResultSet getValueAsResultSet()
IActionParameter
getValueAsResultSet
in interface IActionParameter
public void setValue(Object value)
IActionParameter
setValue
in interface IActionParameter
value
- the value Object to be set.public boolean hasDefaultValue()
IActionParameter
hasDefaultValue
in interface IActionParameter
public boolean hasValue()
IActionParameter
hasValue
in interface IActionParameter
public boolean isDefaultValue()
IActionParameter
isDefaultValue
in interface IActionParameter
public boolean isNull()
IActionParameter
isNull
in interface IActionParameter
public void dispose()
IActionParameter
dispose
in interface IActionParameter
public int getPromptType()
public boolean hasSelections()
hasSelections
in interface IActionParameter
public String getSelectionDisplayName()
IActionParameter
getSelectionDisplayName
in interface IActionParameter
public String getSelectionNameForValue(String val)
IActionParameter
getSelectionNameForValue
in interface IActionParameter
public List getSelectionValues()
getSelectionValues
in interface IActionParameter
@Deprecated public void setParamSelections(List selValues, Map selNames, String displayname)
setParamSelections
in interface IActionParameter
public Map getSelectionNameMap()
getSelectionNameMap
in interface IActionParameter
public int getPromptStatus()
IActionParameter
getPromptStatus
in interface IActionParameter
IActionParameter.PROMPT_ALLOWED
,
IActionParameter.PROMPT_NEVER
,
IActionParameter.PROMPT_NEEDED
,
IActionParameter.PROMPT_PENDING
public boolean setPromptStatus(int status)
IActionParameter
setPromptStatus
in interface IActionParameter
status
- 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 |