|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IActionParameter
An IActionParameter
represents one input or output in an IActionSequence. The
IActionParameter is made up of a name or key, and a value.
Field Summary | |
---|---|
static int |
PROMPT_ALLOWED
This parameter allows prompting |
static int |
PROMPT_NEEDED
This parameter needs to be prompted for a value |
static int |
PROMPT_NEVER
This parameter does not allow prompting |
static int |
PROMPT_PENDING
A component has already specified a prompt for this parameter |
static java.lang.String |
TYPE_CONTENT
Parameter type indicating streamable content. |
static java.lang.String |
TYPE_DATE
Parameter type of Date |
static java.lang.String |
TYPE_DECIMAL
Parameter type of BigDecimal |
static java.lang.String |
TYPE_INTEGER
Parameter type of int |
static java.lang.String |
TYPE_LIST
Parameter type of List. |
static java.lang.String |
TYPE_OBJECT
Parameter type indicating any type of Object |
static java.lang.String |
TYPE_RESULT_SET
Parameter type of IPentahoResultSet |
static java.lang.String |
TYPE_STRING
Parameter type of String |
Method Summary | |
---|---|
void |
dispose()
See if we need to do any cleanup here |
java.lang.String |
getName()
Get the name, or the key for this ActionParameter. |
int |
getPromptStatus()
Returns the prompt status for this parameter. |
java.lang.String |
getSelectionDisplayName()
The display name to use when building a prompt. |
java.lang.String |
getSelectionNameForValue(java.lang.String value)
When building a parameter prompt page, what is the name of the prompt |
java.util.Map |
getSelectionNameMap()
Deprecated. Unused in the platform |
java.util.List |
getSelectionValues()
Deprecated. Unused in the platform |
java.lang.String |
getStringValue()
Get the value for this ActionParameter as type String. |
java.lang.String |
getType()
Return the value type as one of the constants available in this class. |
java.lang.Object |
getValue()
Get the value for this ActionParameter as a generic Java Object. |
java.util.List |
getValueAsList()
Get the value for this ActionParameter as a java.util.List. |
org.pentaho.commons.connection.IPentahoResultSet |
getValueAsResultSet()
Get the value for this ActionParameter as a IPentahoResultSet |
java.util.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. |
boolean |
isOutputParameter()
|
void |
setParamSelections(java.util.List selValues,
java.util.Map selNames,
java.lang.String displayname)
Deprecated. Unused in the platform |
boolean |
setPromptStatus(int status)
Sets the prompt status for this parameter. |
void |
setValue(java.lang.Object value)
Sets the value object for this ActionParameter. |
Field Detail |
---|
static final java.lang.String TYPE_STRING
static final java.lang.String TYPE_INTEGER
int
static final java.lang.String TYPE_LIST
static final java.lang.String TYPE_CONTENT
static final java.lang.String TYPE_DATE
static final java.lang.String TYPE_RESULT_SET
static final java.lang.String TYPE_DECIMAL
static final java.lang.String TYPE_OBJECT
static final int PROMPT_ALLOWED
static final int PROMPT_NEEDED
static final int PROMPT_NEVER
static final int PROMPT_PENDING
Method Detail |
---|
java.lang.String getName()
java.lang.String getStringValue()
java.lang.Object getValue()
java.util.List getValueAsList()
org.pentaho.commons.connection.IPentahoResultSet getValueAsResultSet()
java.lang.String getType()
void setValue(java.lang.Object value)
value
- the value Object to be set.java.util.List getVariables()
boolean hasDefaultValue()
boolean hasValue()
boolean isDefaultValue()
boolean isNull()
void dispose()
int getPromptStatus()
PROMPT_ALLOWED
,
PROMPT_NEVER
,
PROMPT_NEEDED
,
PROMPT_PENDING
boolean setPromptStatus(int status)
status
- The status to set.
PROMPT_ALLOWED
,
PROMPT_NEVER
,
PROMPT_NEEDED
,
PROMPT_PENDING
boolean hasSelections()
java.lang.String getSelectionDisplayName()
java.lang.String getSelectionNameForValue(java.lang.String value)
value
-
boolean isOutputParameter()
@Deprecated java.util.Map getSelectionNameMap()
@Deprecated java.util.List getSelectionValues()
@Deprecated void setParamSelections(java.util.List selValues, java.util.Map selNames, java.lang.String displayname)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |