net.sf.jplist.core
Class NameValuePair

java.lang.Object
  extended by net.sf.jplist.core.NameValuePair

public class NameValuePair
extends java.lang.Object

Simple POJO to hold a name-value pair. The NameValuePair is the element type for a DictionaryElement container object.

Version:
$Revision: 1.2 $
Author:
Sujit Pal (spal@users.sourceforge.net)

Constructor Summary
NameValuePair()
          Instantiate a NameValuePair object.
NameValuePair(java.lang.String key, IElement value)
          Instantiate a NameValuePair object with key and value.
 
Method Summary
 java.lang.String getKey()
          Returns the key from the NameValuePair object.
 IElement getValue()
          Return the value from the NameValuePair object.
 void setKey(java.lang.String key)
          Set the key into the NameValuePair object.
 void setValue(IElement value)
          Set the value into the NameValuePair object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameValuePair

public NameValuePair()
Instantiate a NameValuePair object.


NameValuePair

public NameValuePair(java.lang.String key,
                     IElement value)
Instantiate a NameValuePair object with key and value.

Parameters:
key - the key as a String.
value - the value as an IElement.
Method Detail

getKey

public final java.lang.String getKey()
Returns the key from the NameValuePair object.

Returns:
the key.

setKey

public final void setKey(java.lang.String key)
Set the key into the NameValuePair object.

Parameters:
key - the key to set.

getValue

public final IElement getValue()
Return the value from the NameValuePair object.

Returns:
the value.

setValue

public final void setValue(IElement value)
Set the value into the NameValuePair object.

Parameters:
value - the value to set.