public class SelectionMapper extends Object implements org.pentaho.platform.api.engine.ISelectionMapper
Modifier and Type | Method and Description |
---|---|
static SelectionMapper |
create(org.pentaho.platform.api.engine.IActionParameter actionParam,
String valueColName,
String dispColName,
String displayName,
String displayStyle)
Creates a SelectionMapper based on an IActionParameter.
|
static SelectionMapper |
create(org.pentaho.commons.connection.IPentahoResultSet resultSet,
int valueColIndex,
int dispColIndex,
String displayName,
String displayStyle)
Creates a SelectionMapper based on an IPentahoResultSet.
|
static SelectionMapper |
create(org.pentaho.commons.connection.IPentahoResultSet resultSet,
String displayName,
String displayStyle)
Creates a SelectionMapper based on an IPentahoResultSet.
|
static SelectionMapper |
create(org.pentaho.commons.connection.IPentahoResultSet resultSet,
String valueColName,
String dispColName,
String displayName,
String displayStyle)
Creates a SelectionMapper based on an IPentahoResultSet.
|
static SelectionMapper |
createFromPropMapList(List aList,
String valueColName,
String dispColName,
String displayName,
String displayStyle)
Creates a SelectionMapper based on a pentaho property map list.
|
String |
getDisplayStyle() |
String |
getSelectionDisplayName() |
String |
getSelectionNameForValue(String val) |
Map |
getSelectionNameMap() |
List |
getSelectionValues() |
String |
getValueAt(int index) |
boolean |
hasValue(String value) |
int |
selectionCount() |
String |
toString() |
public static SelectionMapper create(org.pentaho.commons.connection.IPentahoResultSet resultSet, String displayName, String displayStyle)
resultSet
- The result set to get the data fromdisplayName
- The name used to describe the choice for this selection. Usually used as a headerpublic static SelectionMapper create(org.pentaho.commons.connection.IPentahoResultSet resultSet, String valueColName, String dispColName, String displayName, String displayStyle)
resultSet
- The result set to get the data fromvalueColName
- The name of the column to use for the values. If null, the first column will be useddispColName
- The name of the column to use for the display names. If null, the values column will be useddisplayName
- The name used to describe the choice for this selection. Usually used as a headerpublic static SelectionMapper create(org.pentaho.commons.connection.IPentahoResultSet resultSet, int valueColIndex, int dispColIndex, String displayName, String displayStyle)
resultSet
- The result set to get the data fromvalueColName
- The index of the column to use for the values.dispColName
- The index of the column to use for the display names. If 0 then the valueColumn will be used.displayName
- The name used to describe the choice for this selection. Usually used as a headerpublic static SelectionMapper create(org.pentaho.platform.api.engine.IActionParameter actionParam, String valueColName, String dispColName, String displayName, String displayStyle)
actionParam
- The ActionParameter to get the data fromvalueColName
- The name of the column to use for the values. If null, the first column will be useddispColName
- The name of the column to use for the display names. If null, the values column will be useddisplayName
- The name used to describe the choice for this selection. Usually used as a headerpublic static SelectionMapper createFromPropMapList(List aList, String valueColName, String dispColName, String displayName, String displayStyle)
resultSet
- The result set to get the data fromvalueColName
- The index of the column to use for the values.dispColName
- The index of the column to use for the display names. If 0 then the valueColumn will be used.displayName
- The name used to describe the choice for this selection. Usually used as a headerpublic String getDisplayStyle()
getDisplayStyle
in interface org.pentaho.platform.api.engine.ISelectionMapper
public String getSelectionDisplayName()
getSelectionDisplayName
in interface org.pentaho.platform.api.engine.ISelectionMapper
public String getSelectionNameForValue(String val)
getSelectionNameForValue
in interface org.pentaho.platform.api.engine.ISelectionMapper
public List getSelectionValues()
getSelectionValues
in interface org.pentaho.platform.api.engine.ISelectionMapper
public Map getSelectionNameMap()
getSelectionNameMap
in interface org.pentaho.platform.api.engine.ISelectionMapper
public boolean hasValue(String value)
hasValue
in interface org.pentaho.platform.api.engine.ISelectionMapper
public int selectionCount()
selectionCount
in interface org.pentaho.platform.api.engine.ISelectionMapper
public String getValueAt(int index)
getValueAt
in interface org.pentaho.platform.api.engine.ISelectionMapper
Copyright © 2019 Hitachi Vantara. All rights reserved.