|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ISelectionMapper
public String getSelectionDisplayName()
getSelectionDisplayName
in interface ISelectionMapper
public String getSelectionNameForValue(String val)
getSelectionNameForValue
in interface ISelectionMapper
public List getSelectionValues()
getSelectionValues
in interface ISelectionMapper
public Map getSelectionNameMap()
getSelectionNameMap
in interface ISelectionMapper
public boolean hasValue(String value)
hasValue
in interface ISelectionMapper
public int selectionCount()
selectionCount
in interface ISelectionMapper
public String getValueAt(int index)
getValueAt
in interface ISelectionMapper
public String toString()
toString
in interface ISelectionMapper
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |