Class Table

java.lang.Object
com.day.cq.wcm.foundation.Table

public class Table extends Object
Implements a very basic table parser.
  • Constructor Details

    • Table

      public Table()
  • Method Details

    • getColTags

      public List<Table.ColTag> getColTags()
    • getAttributes

      public Table.Attributes getAttributes()
    • setAttribute

      public Table setAttribute(String name, String value)
    • getCaption

      public Table.Tag getCaption()
    • setCaption

      public Table.Tag setCaption(String text)
    • getCell

      public Table.Cell getCell(int row, int col, boolean create)
    • getIntData

      public int[][] getIntData(int rowStart, int numRows, int colStart, int numCols)
    • getIntData

      public int[][] getIntData()
    • getDoubleData

      public double[][] getDoubleData(int rowStart, int numRows, int colStart, int numCols)
    • getDoubleData

      public double[][] getDoubleData()
    • setSize

      public void setSize(int numRows, int numCols)
    • getRows

      public List<Table.Row> getRows()
    • getColumns

      public List<Table.Column> getColumns()
    • getRow

      public Table.Row getRow(int nr)
    • getColumn

      public Table.Column getColumn(int nr)
    • getNumCols

      public int getNumCols()
    • getNumRows

      public int getNumRows()
    • clear

      public void clear()
    • fromXML

      public static Table fromXML(String s)
    • fromXML

      public static Table fromXML(Reader r) throws IOException
      Throws:
      IOException
    • fromCSV

      public static Table fromCSV(String s)
    • fromCSV

      public static Table fromCSV(String s, char delim)
    • toHtml

      public void toHtml(Writer out) throws IOException
      Throws:
      IOException