HOME

com.ireasoning.protocol.snmp
Class NameValue

java.lang.Object
  extended bycom.ireasoning.protocol.snmp.NameValue
All Implemented Interfaces:
Serializable

public class NameValue
extends Object
implements Serializable

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

See Also:
Serialized Form

Constructor Summary
NameValue(String name, String value)
          Constructs a new NameValue instance
 
Method Summary
 String getName()
          Returns the name associated with a value by this object.
 String getValue()
          Returns the value associated with this object
 void setName(String name)
          Sets a new name
 void setValue(String v)
          Sets a new value
 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(String name,
                 String value)
Constructs a new NameValue instance

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

getName

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


setName

public void setName(String name)
Sets a new name


getValue

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


setValue

public void setValue(String v)
Sets a new value


toString

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


HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.