Package org.onosproject.ui.table
Class TableUtils
- java.lang.Object
-
- org.onosproject.ui.table.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.
-
-
-
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
-
-