|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amx.duet.tools.net.snmp.api.SNMPObject
com.amx.duet.tools.net.snmp.api.SNMPSequence
One of the most important SNMP classes. Represents a sequence of other SNMP data types. Virtually all compound structures are subclasses of SNMPSequence - for example, the top-level SNMPMessage, and the SNMPPDU it contains, are both just specializations of SNMPSequence. Sequences are frequently nested within other sequences.
Constructor Summary | |
SNMPSequence()
Create a new empty sequence. |
|
SNMPSequence(java.util.Vector v)
Create a new SNMP sequence from the supplied Vector of SNMPObjects. |
Method Summary | |
void |
addSNMPObject(SNMPObject newObject)
Add the SNMP object to the end of the sequence. |
SNMPObject |
getSNMPObjectAt(int index)
Return the SNMP object at the specified index. |
java.lang.Object |
getValue()
Returns a Vector containing the SNMPObjects in the sequence. |
void |
insertSNMPObjectAt(SNMPObject newObject,
int index)
Insert the SNMP object at the specified position in the sequence. |
void |
setValue(java.lang.Object newSequence)
Used to set the contained SNMP objects from a supplied Vector. |
int |
size()
Return the number of SNMPObjects contained in the sequence. |
java.lang.String |
toString()
Return a sequence of representations of the contained objects, separated by spaces and enclosed in parentheses. |
Methods inherited from class com.amx.duet.tools.net.snmp.api.SNMPObject |
equals, hashCode |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SNMPSequence()
public SNMPSequence(java.util.Vector v) throws SNMPBadValueException
SNMPBadValueException
- Thrown if non-SNMP object supplied in Vector v.Method Detail |
public java.lang.Object getValue()
getValue
in class SNMPObject
public void setValue(java.lang.Object newSequence) throws SNMPBadValueException
setValue
in class SNMPObject
SNMPBadValueException
- Indicates an incorrect object type supplied, or that the supplied
Vector contains non-SNMPObjects.public int size()
public void addSNMPObject(SNMPObject newObject)
SNMPBadValueException
- Relevant only in subclassespublic void insertSNMPObjectAt(SNMPObject newObject, int index)
SNMPBadValueException
- Relevant only in subclassespublic SNMPObject getSNMPObjectAt(int index)
public java.lang.String toString()
toString
in class SNMPObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |