All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class IMSWG.IW.DepValid.Query

java.lang.Object
   |
   +----IMSWG.IW.DepValid.Query

public class Query
extends Object
This class is to support the Query. The queryTable is a Hashtable that represents the query. The queryList is used to display the current query.


Constructor Index

 o Query(Selection)
Saves a copy of selection and initializes the query list to "Query not available yet".

Method Index

 o clear()
Clears the display Vector queryList.
 o clearHash(String)
Removes the selections for the String attribute from the Hashtable queryTable.
 o fromChunk(Vector)
Takes the input Vector response and uses it to initialize the Hashtable queryTable, by looping through the attributes.
 o getlist()
Returns an array of String by making a copy from the Vector queryList
 o getVectorFromHash(String)
Returns the selected valids Vector from the Hashtable queryTable for the given String attribute.
 o setHash(String, Vector)
Sets the query Hashtable queryTable using the attribute as the key and the selected values Vector as the value.
 o setlist(String[])
Sets the Vector queryList using an input array of String.
 o setlist(Vector)
Sets the Vector queryList by using an input Vector.
 o toODL()
Creates an ODL object and loops through the attributes to return the query in the ODL object.
 o updateHash(String, Vector)
Replaces the selected Vector values for the given String attribute in the Hashtable queryTable.

Constructors

 o Query
 public Query(Selection displaySelection)
Saves a copy of selection and initializes the query list to "Query not available yet".

Methods

 o setlist
 public void setlist(String newQueryList[])
Sets the Vector queryList using an input array of String.

 o setlist
 public void setlist(Vector newQueryList)
Sets the Vector queryList by using an input Vector. It uses clone to copy the Vector.

 o getlist
 public String[] getlist()
Returns an array of String by making a copy from the Vector queryList

 o setHash
 public void setHash(String attribute,
                     Vector values)
Sets the query Hashtable queryTable using the attribute as the key and the selected values Vector as the value. It also updates the queryList for display purposes.

 o clearHash
 public void clearHash(String attribute)
Removes the selections for the String attribute from the Hashtable queryTable. It updates the queryList by looping through the attributes and getting the values from the Hashtable queryTable.

 o getVectorFromHash
 public Vector getVectorFromHash(String attribute)
Returns the selected valids Vector from the Hashtable queryTable for the given String attribute.

 o updateHash
 public void updateHash(String attribute,
                        Vector values)
Replaces the selected Vector values for the given String attribute in the Hashtable queryTable. It updates the queryList by looping through the attributes and getting the values from the Hashtable queryTable.

 o clear
 public void clear()
Clears the display Vector queryList.

 o toODL
 public ODL toODL()
Creates an ODL object and loops through the attributes to return the query in the ODL object.

 o fromChunk
 public void fromChunk(Vector response)
Takes the input Vector response and uses it to initialize the Hashtable queryTable, by looping through the attributes.


All Packages  Class Hierarchy  This Package  Previous  Next  Index