com.cisco.provisioning.cpe.api
Class SnmpVariable

java.lang.Object
  extended by com.cisco.provisioning.cpe.api.SnmpVariable
All Implemented Interfaces:
Serializable

public final class SnmpVariable
extends Object
implements Serializable

Class to encapsulate an snmp name/value/type.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
SnmpVariable(String oid, String value, SnmpType type)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
          Determines if this SnmpVariable object is equal to the specified object.
 String getOid()
          Returns the oid
 SnmpType getType()
          Returns the type
 String getValue()
          Returns the value
 int hashCode()
          The hash code of this object.
 String toString()
          Creates String representation of internal state.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

SnmpVariable

public SnmpVariable(String oid,
                    String value,
                    SnmpType type)
Constructor.

Parameters:
oid - represents the String value of the oid. We currently only support numerical descriptions of oids, not textual. For example, the sysuptime is represented as .1.3.6.1.2.1.1.3.
value - represents the oid's value.
type - represents the oid type.
Method Detail

getOid

public String getOid()
Returns the oid

Returns:
the oid.

getValue

public String getValue()
Returns the value

Returns:
the value.

getType

public SnmpType getType()
Returns the type

Returns:
the type.

toString

public String toString()
Creates String representation of internal state.

Overrides:
toString in class Object
Returns:
the String representation of the state.

hashCode

public int hashCode()
The hash code of this object. See Object.hashCode for more information

Overrides:
hashCode in class Object
Returns:
The hascode of this object

equals

public boolean equals(Object obj)
Determines if this SnmpVariable object is equal to the specified object.

Overrides:
equals in class Object
Returns:
true if the specified object is equal to this object. false if the objects are not equal.