Class pmr.util.NVPair
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pmr.util.NVPair

java.lang.Object
   |
   +----pmr.util.NVPair

public class NVPair
extends Object
This class holds a Name/Value pair of strings. It's used for form-data and various internal things.
Author:
Ronald Tschalär

Constructor Index

 o NVPair(NVPair)
Creates a copy of a given name/value pair.
 o NVPair(String, String)
Creates a new name/value pair and initializes it to the specified name and value.

Method Index

 o getName()
get the name
 o getValue()
get the value
 o toString()
produces a string containing the name and value of this instance.

Constructors

 o NVPair
  public NVPair(NVPair p)
Creates a copy of a given name/value pair.
Parameters:
p - the name/value pair to copy
 o NVPair
  public NVPair(String name,
                String value)
Creates a new name/value pair and initializes it to the specified name and value.
Parameters:
name - the name
value - the value

Methods

 o getName
  public final String getName()
get the name
Returns:
the name
 o getValue
  public final String getValue()
get the value
Returns:
the value
 o toString
  public String toString()
produces a string containing the name and value of this instance.
Returns:
a string containing the class name and the name and value
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index