Package org.opencms.ui.dataview
Class CmsColumnValueConverter
- java.lang.Object
-
- org.opencms.ui.dataview.CmsColumnValueConverter
-
public final class CmsColumnValueConverter extends java.lang.Object
Converts column values to the correct types.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Class<?>
getColumnClass(CmsDataViewColumn.Type type)
Gets the actual value class which the given type enum represents.static java.lang.Object
getColumnValue(java.lang.Object value, CmsDataViewColumn.Type type)
Gets the actual column value for the given data value.
-
-
-
Method Detail
-
getColumnClass
public static java.lang.Class<?> getColumnClass(CmsDataViewColumn.Type type)
Gets the actual value class which the given type enum represents.- Parameters:
type
- the type enum- Returns:
- the actual value class to use
-
getColumnValue
public static java.lang.Object getColumnValue(java.lang.Object value, CmsDataViewColumn.Type type)
Gets the actual column value for the given data value.- Parameters:
value
- the data valuetype
- the column type enum- Returns:
- the actual column value to use
-
-