org.troublescope.util
Class NameValuePair

java.lang.Object
  |
  +--org.troublescope.util.NameValuePair
Direct Known Subclasses:
RegistryEntry

public class NameValuePair
extends java.lang.Object

An object that represents a name value pair.

Author:
Calvin Yu

Constructor Summary
NameValuePair()
          Create a new NameValuePair.
NameValuePair(java.lang.String aName, java.lang.String aValue)
          Create a new NameValuePair.
 
Method Summary
static java.util.List createListFromMap(java.lang.Class nvpClass, java.util.Map map)
          Create a list from the given map.
static java.util.List createListFromMap(java.util.Map map)
          Create a list from the given map.
 java.lang.String getName()
          Returns the name.
 java.lang.String getValue()
          Returns the value.
 void setName(java.lang.String aName)
          Set the name.
 void setValue(java.lang.String aValue)
          Sets the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameValuePair

public NameValuePair()
Create a new NameValuePair.

NameValuePair

public NameValuePair(java.lang.String aName,
                     java.lang.String aValue)
Create a new NameValuePair.
Method Detail

getName

public java.lang.String getName()
Returns the name.

setName

public void setName(java.lang.String aName)
Set the name.

getValue

public java.lang.String getValue()
Returns the value.

setValue

public void setValue(java.lang.String aValue)
Sets the value.

createListFromMap

public static java.util.List createListFromMap(java.util.Map map)
Create a list from the given map.

createListFromMap

public static java.util.List createListFromMap(java.lang.Class nvpClass,
                                               java.util.Map map)
Create a list from the given map.


Copyright © 2002-2002 TroubleScope. All Rights Reserved.