com.adventnet.snmp.snmp2.agent
Class OidandValue

java.lang.Object
  extended by com.adventnet.snmp.snmp2.agent.OidandValue

public class OidandValue
extends java.lang.Object

OidAndValue has the oid and value(String representation) pair. This is used by API users using sendTrap method of SnmpAgent

See Also:
SnmpTrapService.sendTrap

Field Summary
(package private)  java.lang.String oid
           
(package private)  java.lang.String value
          The actual value of the MIB object represented by OID
 
Constructor Summary
OidandValue()
          No argument constructor
OidandValue(java.lang.String oid, java.lang.String value)
          Constructor for OidandValue
 
Method Summary
 java.lang.String getOid()
          Getter for oid for this OidAndValue
 java.lang.String getValue()
          getter for the value of the MIB object represented by OID This is used by sendTrap method
 void setOid(java.lang.String oid)
          Setter for oid which is of the dotted form for e.g..1.3.6.1.2.1.1.1
 void setValue(java.lang.String value)
          setter for the value of the MIB object represented by OID This is used by sendTrap method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oid

java.lang.String oid

value

java.lang.String value
The actual value of the MIB object represented by OID

Constructor Detail

OidandValue

public OidandValue()
No argument constructor


OidandValue

public OidandValue(java.lang.String oid,
                   java.lang.String value)
Constructor for OidandValue

Parameters:
oid - the OID
value - the value of the OID
Method Detail

setOid

public void setOid(java.lang.String oid)
Setter for oid which is of the dotted form for e.g..1.3.6.1.2.1.1.1

Parameters:
oid - the string representation of the OID

getOid

public java.lang.String getOid()
Getter for oid for this OidAndValue

Returns:
the string representaion of the OID

setValue

public void setValue(java.lang.String value)
setter for the value of the MIB object represented by OID This is used by sendTrap method

Parameters:
value - the value of the OID

getValue

public java.lang.String getValue()
getter for the value of the MIB object represented by OID This is used by sendTrap method

Returns:
The String Value representation.