|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.platform.engine.services.runtime.SelectionMapper
public class SelectionMapper
| Method Summary | |
|---|---|
static SelectionMapper |
create(IPentahoResultSet resultSet,
int valueColIndex,
int dispColIndex,
String displayName,
String displayStyle)
Creates a SelectionMapper based on an IPentahoResultSet. |
static SelectionMapper |
create(IPentahoResultSet resultSet,
String displayName,
String displayStyle)
Creates a SelectionMapper based on an IPentahoResultSet. |
static SelectionMapper |
create(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()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static SelectionMapper create(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 header
public static SelectionMapper create(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 header
public static SelectionMapper create(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 header
public 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 header
public String getDisplayStyle()
getDisplayStyle in interface ISelectionMapperpublic String getSelectionDisplayName()
getSelectionDisplayName in interface ISelectionMapperpublic String getSelectionNameForValue(String val)
getSelectionNameForValue in interface ISelectionMapperpublic List getSelectionValues()
getSelectionValues in interface ISelectionMapperpublic Map getSelectionNameMap()
getSelectionNameMap in interface ISelectionMapperpublic boolean hasValue(String value)
hasValue in interface ISelectionMapperpublic int selectionCount()
selectionCount in interface ISelectionMapperpublic String getValueAt(int index)
getValueAt in interface ISelectionMapperpublic String toString()
toString in interface ISelectionMappertoString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||