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

public class PrometheusSheetCellAddress extends Object
Utility class to parse/format CellAddresses.
  • Field Details

  • Constructor Details

    • PrometheusSheetCellAddress

      public PrometheusSheetCellAddress(String pSheetName, PrometheusSheetCellPosition pPosition)
      Constructor.
      Parameters:
      pSheetName - the sheet name
      pPosition - the cell location
    • PrometheusSheetCellAddress

      PrometheusSheetCellAddress(String pAddress)
      Constructor.
      Parameters:
      pAddress - the cell address
    • PrometheusSheetCellAddress

      PrometheusSheetCellAddress(String pSheetName, String pAddress)
      Constructor.
      Parameters:
      pSheetName - the sheet name
      pAddress - the cell address
  • Method Details

    • getSheetName

      public String getSheetName()
      Obtain the SheetName.
      Returns:
      the name
    • getPosition

      public PrometheusSheetCellPosition getPosition()
      Obtain the Location.
      Returns:
      the location
    • getColumn

      public int getColumn()
      Obtain the Column.
      Returns:
      the column
    • getRow

      public int getRow()
      Obtain the Row.
      Returns:
      the row
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • formatPosition

      void formatPosition(StringBuilder pBuilder)
      Obtain the column name.
      Parameters:
      pBuilder - the string builder
    • escapeApostrophes

      public static String escapeApostrophes(String pSource)
      Escape apostrophes in a string.
      Parameters:
      pSource - the string to escape
      Returns:
      the escaped string