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.
-
Query(Selection)
- Saves a copy of selection and initializes the query list to
"Query not available yet".
-
clear()
- Clears the display Vector queryList.
-
clearHash(String)
- Removes the selections for the String attribute from the Hashtable
queryTable.
-
fromChunk(Vector)
- Takes the input Vector response and uses it to initialize the
Hashtable queryTable, by looping through the attributes.
-
getlist()
- Returns an array of String by making a copy from the Vector queryList
-
getVectorFromHash(String)
- Returns the selected valids Vector from the Hashtable queryTable for the
given String attribute.
-
setHash(String, Vector)
- Sets the query Hashtable queryTable using the attribute as the key and
the selected values Vector as the value.
-
setlist(String[])
- Sets the Vector queryList using an input array of String.
-
setlist(Vector)
- Sets the Vector queryList by using an input Vector.
-
toODL()
- Creates an ODL object and loops through the attributes to return the
query in the ODL object.
-
updateHash(String, Vector)
- Replaces the selected Vector values for the given String attribute
in the Hashtable queryTable.
Query
public Query(Selection displaySelection)
- Saves a copy of selection and initializes the query list to
"Query not available yet".
setlist
public void setlist(String newQueryList[])
- Sets the Vector queryList using an input array of String.
setlist
public void setlist(Vector newQueryList)
- Sets the Vector queryList by using an input Vector. It uses clone
to copy the Vector.
getlist
public String[] getlist()
- Returns an array of String by making a copy from the Vector queryList
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.
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.
getVectorFromHash
public Vector getVectorFromHash(String attribute)
- Returns the selected valids Vector from the Hashtable queryTable for the
given String attribute.
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.
clear
public void clear()
- Clears the display Vector queryList.
toODL
public ODL toODL()
- Creates an ODL object and loops through the attributes to return the
query in the ODL object.
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