|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.snmp4j.agent.mo.DefaultMOTableRow
public class DefaultMOTableRow
The DefaultMOTableRow is the default table row implementation.
Instances are compared by their index value.
The base row reference is not supported, since the default row implementation
is designed for read-only tables. For mutable rows, use instances
implementing the MOMutableTableRow interface.
| Field Summary | |
|---|---|
protected org.snmp4j.smi.OID |
index
|
protected org.snmp4j.smi.Variable[] |
values
|
| Constructor Summary | |
|---|---|
DefaultMOTableRow(org.snmp4j.smi.OID index,
org.snmp4j.smi.Variable[] values)
|
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
Compares this row with a MOTableRow instance
by their index values. |
boolean |
equals(java.lang.Object obj)
|
MOTableRow |
getBaseRow()
Gets the associated base row for this row (if this row is a dependent row). |
org.snmp4j.smi.OID |
getIndex()
Gets the row's index OID, for example the row index of the first row of an ifTable would return OID("1"). |
org.snmp4j.smi.Variable |
getValue(int column)
Gets the value at the specified column index. |
int |
hashCode()
|
void |
setBaseRow(MOTableRow baseRow)
Sets the associated base row. |
int |
size()
Returns the number of columns in this row. |
java.lang.String |
toString()
|
protected java.lang.String |
toStringMembers()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.snmp4j.smi.Variable[] values
protected org.snmp4j.smi.OID index
| Constructor Detail |
|---|
public DefaultMOTableRow(org.snmp4j.smi.OID index,
org.snmp4j.smi.Variable[] values)
| Method Detail |
|---|
public MOTableRow getBaseRow()
MOTableRow
getBaseRow in interface MOTableRownull if this row is a base row itself.public org.snmp4j.smi.OID getIndex()
MOTableRowOID("1").
getIndex in interface MOTableRowpublic org.snmp4j.smi.Variable getValue(int column)
MOTableRow
getValue in interface MOTableRowcolumn - the zero-based column index.
public int size()
MOTableRow
size in interface MOTableRowpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectprotected java.lang.String toStringMembers()
public void setBaseRow(MOTableRow baseRow)
MOTableRow
setBaseRow in interface MOTableRowbaseRow - the base row.public int compareTo(java.lang.Object o)
MOTableRow instance
by their index values.
compareTo in interface java.lang.Comparableo - a MOTableRow instance
getIndex().compareTo(o.getIndex())
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||