All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.css.util.NVPair

java.lang.Object
   |
   +----org.w3c.css.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.


Constructor Index

 o NVPair(NVPair)
Creates a copy of a given name/value pair.
 o NVPair(String, Object)
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,
               Object 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 Object 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