org.gusdb.wdk.model.test
Class SanityQueryOrQuestion

java.lang.Object
  extended by org.gusdb.wdk.model.test.SanityQueryOrQuestion
Direct Known Subclasses:
SanityQuery, SanityQuestion

public abstract class SanityQueryOrQuestion
extends java.lang.Object

Object used in running a sanity test; represents a query or question in a wdk model. Created: Mon August 23 12:00:00 2004 EDT


Constructor Summary
SanityQueryOrQuestion(java.lang.String type)
           
 
Method Summary
 void addParam(SanityParam param)
           
abstract  java.lang.String getCommand(java.lang.String globalArgs)
           
 java.lang.Integer getMaxOutputLength()
           
 java.lang.Integer getMinOutputLength()
           
 java.lang.String getName()
           
 SanityParam getParam(java.lang.String paramName)
           
 java.util.Hashtable getParamHash()
          Convenience method that does extraction of SanityParam names and values for the user instead of requiring them to deal with SanityParam objects.
 SanityParam[] getParams()
           
 java.lang.String getRef()
           
 java.lang.String getType()
           
 java.lang.String getTypeCap()
           
 boolean hasParam(java.lang.String paramName)
           
 void setMaxOutputLength(java.lang.Integer maxOutputLength)
           
 void setMinOutputLength(java.lang.Integer minOutputLength)
           
 void setRef(java.lang.String twoPartName)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SanityQueryOrQuestion

public SanityQueryOrQuestion(java.lang.String type)
Method Detail

setRef

public void setRef(java.lang.String twoPartName)

getRef

public java.lang.String getRef()

addParam

public void addParam(SanityParam param)

getParam

public SanityParam getParam(java.lang.String paramName)
                     throws WdkUserException
Throws:
WdkUserException

hasParam

public boolean hasParam(java.lang.String paramName)

getParams

public SanityParam[] getParams()
Parameters:
return - An array of all sanity params provided in the sanity test. Note that the calling method needs to extract names and values from each Sanity Param object.

getParamHash

public java.util.Hashtable getParamHash()
Convenience method that does extraction of SanityParam names and values for the user instead of requiring them to deal with SanityParam objects.

Parameters:
return - a Hashtable where the keys are the name of each parameter and the values are the actual values of the parameter.

setMinOutputLength

public void setMinOutputLength(java.lang.Integer minOutputLength)

getMinOutputLength

public java.lang.Integer getMinOutputLength()

setMaxOutputLength

public void setMaxOutputLength(java.lang.Integer maxOutputLength)

getMaxOutputLength

public java.lang.Integer getMaxOutputLength()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getTypeCap

public java.lang.String getTypeCap()

getCommand

public abstract java.lang.String getCommand(java.lang.String globalArgs)
                                     throws WdkModelException
Throws:
WdkModelException

getName

public java.lang.String getName()

getType

public java.lang.String getType()