edu.vt.marian.WebGate
Class query_data_for_one_server

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

public class query_data_for_one_server
extends java.lang.Object

Class name: query_data_for_one_server Class description: this class represent the query data corresponds to a server it's a component of the class query_data Author: Jianxin Zhao Finished time: ????, 1998 Known bugs: none Platform: jdk1.1.5 under UNIX


Constructor Summary
query_data_for_one_server(java.io.BufferedReader br, edu.vt.marian.common.Debug debug)
          this constructor will create a query data for one server object from the specified directory
query_data_for_one_server(java.io.DataInputStream dis)
          this constructor will create a query data for one server object from a stream, this might be helpful for remote manage in the future (not implemented yet)
query_data_for_one_server(edu.vt.marian.common.Debug debug)
          this constructor will create a query data for one server object, the object is empty upon creation
query_data_for_one_server(java.lang.String dir, edu.vt.marian.common.Debug debug)
          this constructor will create a query data for one server object from the specified directory
 
Method Summary
 java.lang.String add_field(java.lang.String name, java.lang.String value)
          this method will add the field with the specified value to this object
 java.lang.String add_preference(java.lang.String name, java.lang.String value)
          this method will add the specified preference with the specified value to this object
 java.lang.String delete_field(java.lang.String name)
          this method will delete the specified field from this object
 java.lang.String delete_preference(java.lang.String name)
          this method will delete the specified preference from this object
 java.util.Vector get_field_names()
          this method will return all the field names of this object
 java.util.Vector get_preference_names()
          this method will return all the preference names of this object
 java.lang.String get_preference_value(java.lang.String name)
          this method will return the value of the specified preference of this object
 java.lang.String get_relation()
          this method will return the relationship between fields of this object
 edu.vt.marian.uip.uip_server get_server()
          this method will return the server this object is corresponds to
 java.lang.String get_value(java.lang.String field_name)
          this method will return the value of the specified field of this object
 java.lang.String save(java.io.PrintWriter pw)
          this method will save the content of this object to the specified directory or file
 java.lang.String save(java.lang.String dir)
          this method will save the content of this object to the specified directory or file
 java.lang.String set_field(java.lang.String name, java.lang.String value)
          this method will set the specified field to the specified value for this object
 java.lang.String set_preference(java.lang.String name, java.lang.String value)
          this method will set the specified preference with the specified value
 java.lang.String set_relation(java.lang.String relation)
          this method will set the relation between the fields of this object
 java.lang.String set_server(edu.vt.marian.uip.uip_server us)
          this method will set the uip server of this object
 java.lang.String to_stream(java.io.DataOutputStream dos)
          this method will print the content of this object to a stream, this might be helpful for remote management in the future
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

query_data_for_one_server

public query_data_for_one_server(edu.vt.marian.common.Debug debug)
this constructor will create a query data for one server object, the object is empty upon creation

query_data_for_one_server

public query_data_for_one_server(java.lang.String dir,
                                 edu.vt.marian.common.Debug debug)
this constructor will create a query data for one server object from the specified directory

query_data_for_one_server

public query_data_for_one_server(java.io.BufferedReader br,
                                 edu.vt.marian.common.Debug debug)
this constructor will create a query data for one server object from the specified directory

query_data_for_one_server

public query_data_for_one_server(java.io.DataInputStream dis)
this constructor will create a query data for one server object from a stream, this might be helpful for remote manage in the future (not implemented yet)
Method Detail

set_server

public java.lang.String set_server(edu.vt.marian.uip.uip_server us)
this method will set the uip server of this object

get_server

public edu.vt.marian.uip.uip_server get_server()
this method will return the server this object is corresponds to

get_field_names

public java.util.Vector get_field_names()
this method will return all the field names of this object

add_field

public java.lang.String add_field(java.lang.String name,
                                  java.lang.String value)
this method will add the field with the specified value to this object

set_field

public java.lang.String set_field(java.lang.String name,
                                  java.lang.String value)
this method will set the specified field to the specified value for this object

delete_field

public java.lang.String delete_field(java.lang.String name)
this method will delete the specified field from this object

get_value

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

set_relation

public java.lang.String set_relation(java.lang.String relation)
this method will set the relation between the fields of this object

get_relation

public java.lang.String get_relation()
this method will return the relationship between fields of this object

get_preference_names

public java.util.Vector get_preference_names()
this method will return all the preference names of this object

get_preference_value

public java.lang.String get_preference_value(java.lang.String name)
this method will return the value of the specified preference of this object

add_preference

public java.lang.String add_preference(java.lang.String name,
                                       java.lang.String value)
this method will add the specified preference with the specified value to this object

set_preference

public java.lang.String set_preference(java.lang.String name,
                                       java.lang.String value)
this method will set the specified preference with the specified value

delete_preference

public java.lang.String delete_preference(java.lang.String name)
this method will delete the specified preference from this object

to_stream

public java.lang.String to_stream(java.io.DataOutputStream dos)
this method will print the content of this object to a stream, this might be helpful for remote management in the future

save

public java.lang.String save(java.lang.String dir)
this method will save the content of this object to the specified directory or file

save

public java.lang.String save(java.io.PrintWriter pw)
this method will save the content of this object to the specified directory or file