| java.lang.Object com.jcorporate.expresso.kernel.util.NameValuePair
NameValuePair | public class NameValuePair (Code) | | Object similar to valid values, but it mainly represents the common usage of
a name representing a value.
author: Michael Rimov version: $Revision: 1.4 $ on $Date: 2004/11/17 20:48:17 $ |
Constructor Summary | |
public | NameValuePair() Constructor that creates a null name and null value. | public | NameValuePair(String newName, Object newValue) Constructs a name value pair with the given name and given
object value. |
NameValuePair | public NameValuePair()(Code) | | Constructor that creates a null name and null value.
|
NameValuePair | public NameValuePair(String newName, Object newValue)(Code) | | Constructs a name value pair with the given name and given
object value.
Parameters: newName - the name of the name value pair Parameters: newValue - the object or value part of the pair |
getName | public String getName()(Code) | | Retrieve the name for this name value pair
java.lang.String [may be null] |
getValue | public Object getValue()(Code) | | Get the actual value object
java.lang.Object |
hashCode | public int hashCode()(Code) | | Override on hash code. WE only care to hash code based upon the name,
not the value.
integer hash code. |
setName | public void setName(String name)(Code) | | Set the name for this pair
Parameters: name - java.lang.String |
setValue | public void setValue(Object value)(Code) | | Set the value for the name value pair
Parameters: value - java.lang.Object |
|
|