HOME

com.ireasoning.protocol.snmp
Class NameValue

java.lang.Object
  extended by com.ireasoning.protocol.snmp.NameValue
All Implemented Interfaces:
java.io.Serializable

public class NameValue
extends java.lang.Object
implements java.io.Serializable

This class is a data structure which stores name and value pair.

See Also:
Serialized Form

Constructor Summary
NameValue(java.lang.String name, java.lang.String value)
          Constructs a new NameValue instance
 
Method Summary
 java.lang.String getName()
          Returns the name associated with a value by this object.
 java.lang.String getValue()
          Returns the value associated with this object
 void setName(java.lang.String name)
          Sets a new name
 void setValue(java.lang.String v)
          Sets a new value
 java.lang.String toString()
          Returns the String representation in the format of "name: name, value: value"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NameValue

public NameValue(java.lang.String name,
                 java.lang.String value)
Constructs a new NameValue instance

Parameters:
name - name
value - the value associated with the passed name
Method Detail

getName

public java.lang.String getName()
Returns the name associated with a value by this object.


setName

public void setName(java.lang.String name)
Sets a new name


getValue

public java.lang.String getValue()
Returns the value associated with this object


setValue

public void setValue(java.lang.String v)
Sets a new value


toString

public java.lang.String toString()
Returns the String representation in the format of "name: name, value: value"

Overrides:
toString in class java.lang.Object

HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.