com.ibm.commerce.command
Class NameValuePair

java.lang.Object
  |
  +--com.ibm.commerce.command.NameValuePair
All Implemented Interfaces:
java.io.Serializable

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

This class is for internal use only.

See Also:
Serialized Form

Constructor Summary
NameValuePair()
          Default constructor for the NameValuePair.
NameValuePair(java.lang.String name, java.lang.String value)
          Constructor for the NameValuePair with the given name and value parameter.
 
Method Summary
 java.lang.String getName()
          Gets the name from the name value pair.
 java.lang.String getValue()
          Gets the value from the name value pair.
 boolean isEqual( NameValuePair n)
          Checks the values in the name value pair
 void setName(java.lang.String name)
          Sets the name from the name value pair.
 void setValue(java.lang.String value)
          Sets the value from the name value pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameValuePair

public NameValuePair()
Default constructor for the NameValuePair.

NameValuePair

public NameValuePair(java.lang.String name,
                     java.lang.String value)
Constructor for the NameValuePair with the given name and value parameter.
Method Detail

getName

public java.lang.String getName()
Gets the name from the name value pair.
Returns:
the name from the name value pair

getValue

public java.lang.String getValue()
Gets the value from the name value pair.
Returns:
the value from the name value pair

isEqual

public boolean isEqual(NameValuePair n)
Checks the values in the name value pair
Parameters:
n - input name value pair
Returns:
true if they have the same values; false otherwise

setName

public void setName(java.lang.String name)
Sets the name from the name value pair.
Returns:
name the name from the name value pair

setValue

public void setValue(java.lang.String value)
Sets the value from the name value pair.
Returns:
value the value from the name value pair