edu.vt.marian.WebGate
Class name_value_pair

java.lang.Object
  |
  +--edu.vt.marian.WebGate.name_value_pair

public class name_value_pair
extends java.lang.Object

Class name: name_value_pair Class description: this class represent a name value pair Author: Jianxin Zhao Finished time: ????, 1998 Known bugs: none Platform: jdk1.1.5 under UNIX


Constructor Summary
name_value_pair(java.io.BufferedReader br, edu.vt.marian.common.Debug debug)
          this constructor will create a name value pair object from a stream
name_value_pair(edu.vt.marian.common.Debug debug)
          this constructor will create a name value pair object, the object is empty upon creation
name_value_pair(java.lang.String name, java.lang.String value, edu.vt.marian.common.Debug debug)
          this constructor will create a name value pair object with the specified name and value
 
Method Summary
 java.lang.String get_name()
          this method will return the name of this object
 java.lang.String get_value()
          this method will return the value of this object
 java.lang.String set_name(java.lang.String name)
          this method will set the name of this object
 java.lang.String set_value(java.lang.String value)
          this method will set the value of this object
 java.lang.String to_stream(java.io.PrintWriter pw)
          this method will print the content of this object to a stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

name_value_pair

public name_value_pair(edu.vt.marian.common.Debug debug)
this constructor will create a name value pair object, the object is empty upon creation

name_value_pair

public name_value_pair(java.lang.String name,
                       java.lang.String value,
                       edu.vt.marian.common.Debug debug)
this constructor will create a name value pair object with the specified name and value

name_value_pair

public name_value_pair(java.io.BufferedReader br,
                       edu.vt.marian.common.Debug debug)
this constructor will create a name value pair object from a stream
Method Detail

set_name

public java.lang.String set_name(java.lang.String name)
this method will set the name of this object

get_name

public java.lang.String get_name()
this method will return the name of this object

set_value

public java.lang.String set_value(java.lang.String value)
this method will set the value of this object

get_value

public java.lang.String get_value()
this method will return the value of this object

to_stream

public java.lang.String to_stream(java.io.PrintWriter pw)
this method will print the content of this object to a stream