com.ireasoning.protocol.snmp
Class NameValue
java.lang.Object
|
+--com.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
NameValue
public NameValue(String name,
String value)
- Constructs a new NameValue instance
- Parameters:
name
- namevalue
- the value associated with the passed name
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"
- Overrides:
toString
in class Object
Copyright © 2002 iReasoning Inc. All Rights Reserved.