Class CmsColumnValueConverter

java.lang.Object
org.opencms.ui.dataview.CmsColumnValueConverter

public final class CmsColumnValueConverter extends Object
Converts column values to the correct types.

  • Method Details

    • getColumnClass

      public static 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 Object getColumnValue(Object value, CmsDataViewColumn.Type type)
      Gets the actual column value for the given data value.

      Parameters:
      value - the data value
      type - the column type enum
      Returns:
      the actual column value to use