|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.snmp4j.agent.mo.DefaultMOTableModel<R>
public class DefaultMOTableModel<R extends MOTableRow>
| Field Summary | |
|---|---|
protected int |
columnCount
|
protected java.util.SortedMap<org.snmp4j.smi.OID,R> |
rows
|
| Constructor Summary | |
|---|---|
DefaultMOTableModel()
|
|
| Method Summary | |
|---|---|
R |
addRow(R row)
|
boolean |
containsRow(org.snmp4j.smi.OID index)
Checks whether this table model contains a row with the specified index. |
void |
dump(java.io.OutputStream os)
Dumps a textual representation of the table model content to the specified OutputStream. |
org.snmp4j.smi.OID |
firstIndex()
Returns the first row index in this model. |
R |
firstRow()
Returns the first row contained in this model. |
int |
getColumnCount()
Returns the number of columns currently in this table model. |
R |
getRow(org.snmp4j.smi.OID index)
Gets the row with the specified index. |
int |
getRowCount()
Returns the number of rows currently in this table model. |
java.util.Iterator<R> |
iterator()
Returns an iterator over the rows in this table model. |
org.snmp4j.smi.OID |
lastIndex()
Returns the last row index in this model. |
R |
lastRow()
Returns the last row contained in this model. |
java.util.Iterator<R> |
tailIterator(org.snmp4j.smi.OID lowerBound)
Returns an iterator on a view of the rows of this table model whose index values are greater or equal lowerBound. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.SortedMap<org.snmp4j.smi.OID,R extends MOTableRow> rows
protected int columnCount
| Constructor Detail |
|---|
public DefaultMOTableModel()
| Method Detail |
|---|
public R addRow(R row)
public int getColumnCount()
MOTableModel
getColumnCount in interface MOTableModel<R extends MOTableRow>public int getRowCount()
MOTableModel
getRowCount in interface MOTableModel<R extends MOTableRow>public R getRow(org.snmp4j.smi.OID index)
MOTableModel
getRow in interface MOTableModel<R extends MOTableRow>index - the row index.
MOTableRow with the specified index and
null if no such row exists.public org.snmp4j.smi.OID firstIndex()
MOTableModel
firstIndex in interface MOTableModel<R extends MOTableRow>public java.util.Iterator<R> iterator()
MOTableModel
iterator in interface MOTableModel<R extends MOTableRow>Iterator returning MOTableRow instances.public R firstRow()
MOTableModel
firstRow in interface MOTableModel<R extends MOTableRow>MOTableRow with the smallest index or null
if the model is empty.public org.snmp4j.smi.OID lastIndex()
MOTableModel
lastIndex in interface MOTableModel<R extends MOTableRow>public R lastRow()
MOTableModel
lastRow in interface MOTableModel<R extends MOTableRow>MOTableRow with the greatest index or null
if the model is empty.public boolean containsRow(org.snmp4j.smi.OID index)
MOTableModel
containsRow in interface MOTableModel<R extends MOTableRow>index - the index OID of the row to search.
true if this model has a row of with index
index or false otherwise.public java.util.Iterator<R> tailIterator(org.snmp4j.smi.OID lowerBound)
MOTableModellowerBound.
tailIterator in interface MOTableModel<R extends MOTableRow>lowerBound - the lower bound index (inclusive). If lowerBound is
null the returned iterator is the same as returned by
MOTableModel.iterator().
Iterator over the
public void dump(java.io.OutputStream os)
throws java.io.IOException
OutputStream.
os - an OutputStream to write the model content to.
java.io.IOException - if a write operation on os fails with an IO exception.
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||