public class TableListModel extends java.lang.Object implements java.io.Serializable, ProtobufMessageHandler
Constructor and Description |
---|
TableListModel()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
add(TableModel table)
Add the table name model to the list
|
byte[] |
createProtobufOutput() |
TableModel |
get(int index) |
ProtobufMessageHandler |
getObjectFromMessage(byte[] message)
Initialize the model from a protobuf representation.
|
java.util.List<TableModel> |
getTables() |
void |
setTables(java.util.List<TableModel> tables) |
java.lang.String |
toString() |
public void add(TableModel table)
table
- the table modelpublic TableModel get(int index)
index
- the indexpublic java.util.List<TableModel> getTables()
public void setTables(java.util.List<TableModel> tables)
tables
- the tables to setpublic java.lang.String toString()
toString
in class java.lang.Object
public byte[] createProtobufOutput()
createProtobufOutput
in interface ProtobufMessageHandler
public ProtobufMessageHandler getObjectFromMessage(byte[] message) throws java.io.IOException
ProtobufMessageHandler
getObjectFromMessage
in interface ProtobufMessageHandler
message
- the raw bytes of the protobuf messagejava.io.IOException