java.lang.Object
io.github.tonywasher.joceanus.prometheus.service.sheet.PrometheusSheetFormats

public final class PrometheusSheetFormats extends Object
Excel/Oasis format string builder class.
  • Field Details

  • Method Details

    • getDataFormatString

      public static String getDataFormatString(PrometheusSheetCellStyleType pType)
      Obtain data format string for a cell type.
      Parameters:
      pType - the cell style type
      Returns:
      the format string
    • getDefaultValue

      public static Object getDefaultValue(PrometheusSheetCellStyleType pType)
      Obtain default value for a cell type.
      Parameters:
      pType - the cell style type
      Returns:
      the format string
    • getDataFormatString

      public static String getDataFormatString(Object pValue)
      Obtain data format string for a cell value.
      Parameters:
      pValue - the cell value
      Returns:
      the format string
    • getAlternateFormatString

      public static String getAlternateFormatString(Object pValue)
      Obtain alternate data format string for a cell value.
      Parameters:
      pValue - the cell value
      Returns:
      the format string
    • getFormatName

      public static String getFormatName(PrometheusSheetCellStyleType pType)
      Obtain data format string for a cell type.
      Parameters:
      pType - the cell style type
      Returns:
      the format string
    • getFormatName

      public static String getFormatName(Object pValue)
      Obtain format name for a cell.
      Parameters:
      pValue - the cell value
      Returns:
      the format string
    • getAlternateFormatName

      public static String getAlternateFormatName(Object pValue)
      Obtain currency format name for a cell.
      Parameters:
      pValue - the cell value
      Returns:
      the format string
    • hasDataFormat

      public static boolean hasDataFormat(PrometheusSheetCellStyleType pType)
      Determine whether cell type has data format.
      Parameters:
      pType - the cell type
      Returns:
      true/false
    • getCellStyleType

      public static PrometheusSheetCellStyleType getCellStyleType(Object pValue)
      Obtain data format for a value.
      Parameters:
      pValue - the cell value
      Returns:
      the cell style type