Class TableUtils


  • public final class TableUtils
    extends java.lang.Object
    Provides static utility methods for dealing with tables.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.fasterxml.jackson.databind.node.ObjectNode generateAnnotObjectNode​(TableModel tm)
      Generates a JSON object node from the annotations of the given table model.
      static com.fasterxml.jackson.databind.node.ArrayNode generateRowArrayNode​(TableModel tm)
      Generates a JSON array node from the rows of the given table model.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • generateRowArrayNode

        public static com.fasterxml.jackson.databind.node.ArrayNode generateRowArrayNode​(TableModel tm)
        Generates a JSON array node from the rows of the given table model.
        Parameters:
        tm - the table model
        Returns:
        the array node representation of rows
      • generateAnnotObjectNode

        public static com.fasterxml.jackson.databind.node.ObjectNode generateAnnotObjectNode​(TableModel tm)
        Generates a JSON object node from the annotations of the given table model.
        Parameters:
        tm - the table model
        Returns:
        the object node representation of the annotations