org.snmp4j.agent.mo
Interface MOMutableTableModel<R extends MOTableRow>

All Superinterfaces:
MOTableModel<R>, MOTableRowFactory<R>
All Known Implementing Classes:
DefaultMOMutableTableModel, UsmMIB.UsmTableModel

public interface MOMutableTableModel<R extends MOTableRow>
extends MOTableModel<R>, MOTableRowFactory<R>

The MOMutableTableModel defines the interface for mutable table models. Mutable table models support row creation and deletion through SNMP SET operations.

Version:
1.0
Author:
Frank Fock

Method Summary
 R addRow(R row)
          Adds a row to the table.
 void clear()
          Removes all rows.
 void clear(MOTableRowFilter<R> filter)
          Remove all rows that do not match the given filter criteria from the model.
 R removeRow(org.snmp4j.smi.OID index)
          Removes the row with the specified index from the table and returns it.
 void setRowFactory(MOTableRowFactory<R> rowFactory)
          Sets the factory instance to be used for creating rows for this model.
 
Methods inherited from interface org.snmp4j.agent.mo.MOTableModel
containsRow, firstIndex, firstRow, getColumnCount, getRow, getRowCount, iterator, lastIndex, lastRow, tailIterator
 
Methods inherited from interface org.snmp4j.agent.mo.MOTableRowFactory
createRow, freeRow
 

Method Detail

addRow

R addRow(R row)
Adds a row to the table. If a row with the same index already exists it will be replaced and returned.

Parameters:
row - the MOTableRow instance to add.
Returns:
the previous row with the specified index or null if it did not have one.

removeRow

R removeRow(org.snmp4j.smi.OID index)
Removes the row with the specified index from the table and returns it.

Parameters:
index - the row index of the row to remove.
Returns:
the removed row or null if the table did not contain such a row.

clear

void clear()
Removes all rows.


clear

void clear(MOTableRowFilter<R> filter)
Remove all rows that do not match the given filter criteria from the model.

Parameters:
filter - the MOTableRowFilter that filters out the rows to delete.

setRowFactory

void setRowFactory(MOTableRowFactory<R> rowFactory)
Sets the factory instance to be used for creating rows for this model.

Parameters:
rowFactory - a MOTableRowFactory instance or null to disable row creation.

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.