|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--edu.vt.marian.WebGate.query_data
Class name: query_data Class description: this class represent the data of a query, it's usually filled by a client, the design of this class make the fields it contains very flexible, a big improvement over the previous system I believe Author: Jianxin Zhao Finished time: ????, 1998 Known bugs: none Platform: jdk1.1.5 under UNIX
| Constructor Summary | |
query_data(java.io.DataInputStream dis)
this constructor will create a query_data object from a stream, this might be helpful for remote management in the future. |
|
query_data(java.lang.String dir,
edu.vt.marian.common.Debug debug)
this constructor will create a query data object from the specified directory |
|
query_data(java.lang.String title,
java.util.Vector server_list,
edu.vt.marian.common.Debug debug)
this constructor will create a query data object, this object is empty upon creation |
|
| Method Summary | |
java.lang.String |
add_field(java.util.Vector servers,
java.lang.String name,
java.lang.String value)
this method will add the field with the specified value to the specified uip servers |
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.util.Vector servers,
java.lang.String name)
this method will delete the specified field corresponds to the specified uip servers |
java.lang.String |
delete_prefernece(java.lang.String name)
this method will delete the specified preference from this object |
java.util.Vector |
get_field_names(edu.vt.marian.uip.uip_server us)
this method will return all the field names performed to the specified uip server, so different uip servers may have different field names |
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(edu.vt.marian.uip.uip_server us)
this method will return the relationship between fields performed to the specified uip server, so we support different relationships (such as "and", "or", ...) to different uip servers in the same query data object. |
java.util.Vector |
get_server_list()
this method will return the server list to which this query data object is effective, note one query can be performed to multiple servers, we even support different queries to different servers in one query data object, see other methods of this object |
java.lang.String |
get_title()
this method will return the title of this query data |
java.lang.String |
get_value(edu.vt.marian.uip.uip_server us,
java.lang.String field_name)
this method will return the value of the specified field to the specified uip server |
java.lang.String |
save(java.lang.String dir)
this method will save this object to the specified file |
java.lang.String |
set_field(java.util.Vector servers,
java.lang.String name,
java.lang.String value)
this method will set the specified fields to the specified value for the specified uip servers |
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.util.Vector servers,
java.lang.String relation)
this method will set the relation to the specified uip servers |
java.lang.String |
set_title(java.lang.String title)
this method will set the title for this query data |
java.lang.String |
to_stream(java.io.DataOutputStream dos)
this method will print the content of this object to a stream, 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 |
public query_data(java.lang.String title,
java.util.Vector server_list,
edu.vt.marian.common.Debug debug)
public query_data(java.io.DataInputStream dis)
public query_data(java.lang.String dir,
edu.vt.marian.common.Debug debug)
| Method Detail |
public java.lang.String set_title(java.lang.String title)
public java.lang.String get_title()
public java.util.Vector get_server_list()
public java.util.Vector get_field_names(edu.vt.marian.uip.uip_server us)
public java.lang.String add_field(java.util.Vector servers,
java.lang.String name,
java.lang.String value)
public java.lang.String set_field(java.util.Vector servers,
java.lang.String name,
java.lang.String value)
public java.lang.String delete_field(java.util.Vector servers,
java.lang.String name)
public java.lang.String get_value(edu.vt.marian.uip.uip_server us,
java.lang.String field_name)
public java.lang.String set_relation(java.util.Vector servers,
java.lang.String relation)
public java.lang.String get_relation(edu.vt.marian.uip.uip_server us)
public java.util.Vector get_preference_names()
public java.lang.String get_preference_value(java.lang.String name)
public java.lang.String add_preference(java.lang.String name,
java.lang.String value)
public java.lang.String set_preference(java.lang.String name,
java.lang.String value)
public java.lang.String delete_prefernece(java.lang.String name)
public java.lang.String to_stream(java.io.DataOutputStream dos)
public java.lang.String save(java.lang.String dir)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||