org.gusdb.wdk.model.test
Class SanityXmlQuestion

java.lang.Object
  extended by org.gusdb.wdk.model.test.SanityXmlQuestion
All Implemented Interfaces:
SanityElementI

public class SanityXmlQuestion
extends java.lang.Object
implements SanityElementI

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
SanityXmlQuestion()
           
 
Method Summary
 java.lang.String getCommand(java.lang.String globalArgs)
          Dump a command-line that can be used to individually test this element, outside of the context of a sanity test (the command line will include all necessary parameters, the values of which will be the same as those that the test attempted to use previously.
 int getMaxOutputLength()
           
 int getMinOutputLength()
           
 java.lang.String getName()
          Return the name of this element.
 int getPageEnd()
           
 int getPageStart()
           
 java.lang.String getRef()
           
 java.lang.String getType()
          Return the general type of this element (for instance, "query" or "record".
 java.lang.String getXmlData()
           
 void setMaxOutputLength(int maxOutputLength)
           
 void setMinOutputLength(int minOutputLength)
           
 void setPageEnd(int pageEnd)
           
 void setPageStart(int pageStart)
           
 void setRef(java.lang.String ref)
           
 void setType(java.lang.String type)
           
 void setXmlData(java.lang.String xmlData)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SanityXmlQuestion

public SanityXmlQuestion()
Method Detail

getCommand

public java.lang.String getCommand(java.lang.String globalArgs)
                            throws WdkModelException
Description copied from interface: SanityElementI
Dump a command-line that can be used to individually test this element, outside of the context of a sanity test (the command line will include all necessary parameters, the values of which will be the same as those that the test attempted to use previously. This command is usually printed when a sanity test has failed.

Specified by:
getCommand in interface SanityElementI
Parameters:
globalArgs - Arguments not specific to the Element itself; basically anything in the Sanity test that was required to run all elements.
Throws:
WdkModelException

getMaxOutputLength

public int getMaxOutputLength()
Returns:
Returns the maxOutputLength.

setMaxOutputLength

public void setMaxOutputLength(int maxOutputLength)
Parameters:
maxOutputLength - The maxOutputLength to set.

getMinOutputLength

public int getMinOutputLength()
Returns:
Returns the minOutputLength.

setMinOutputLength

public void setMinOutputLength(int minOutputLength)
Parameters:
minOutputLength - The minOutputLength to set.

getPageEnd

public int getPageEnd()
Returns:
Returns the pageEnd.

setPageEnd

public void setPageEnd(int pageEnd)
Parameters:
pageEnd - The pageEnd to set.

getPageStart

public int getPageStart()
Returns:
Returns the pageStart.

setPageStart

public void setPageStart(int pageStart)
Parameters:
pageStart - The pageStart to set.

getRef

public java.lang.String getRef()
Returns:
Returns the ref.

setRef

public void setRef(java.lang.String ref)
Parameters:
ref - The ref to set.

getType

public java.lang.String getType()
Description copied from interface: SanityElementI
Return the general type of this element (for instance, "query" or "record".

Specified by:
getType in interface SanityElementI
Returns:
Returns the type.

setType

public void setType(java.lang.String type)
Parameters:
type - The type to set.

getXmlData

public java.lang.String getXmlData()
Returns:
Returns the xmlData.

setXmlData

public void setXmlData(java.lang.String xmlData)
Parameters:
xmlData - The xmlData to set.

getName

public java.lang.String getName()
Description copied from interface: SanityElementI
Return the name of this element.

Specified by:
getName in interface SanityElementI