org.gusdb.wdk.model.test
Class SanityRecord

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

public class SanityRecord
extends java.lang.Object
implements SanityElementI

SanityRecord.java Object used in running a sanity test; represents a record in a wdk model. Created: Mon August 23 12:00:00 2004 EDT


Constructor Summary
SanityRecord()
           
 
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.
 java.lang.String getName()
          Return the name of this element.
 java.lang.String getPrimaryKey()
           
 java.lang.String getProjectID()
           
 java.lang.String getRef()
           
 java.lang.String getType()
          Return the general type of this element (for instance, "query" or "record".
 void setPrimaryKey(java.lang.String primaryKey)
           
 void setProjectID(java.lang.String projectID)
           
 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

SanityRecord

public SanityRecord()
Method Detail

setRef

public void setRef(java.lang.String twoPartName)

getRef

public java.lang.String getRef()

setPrimaryKey

public void setPrimaryKey(java.lang.String primaryKey)

getPrimaryKey

public java.lang.String getPrimaryKey()

setProjectID

public void setProjectID(java.lang.String projectID)

getProjectID

public java.lang.String getProjectID()

toString

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

getName

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

Specified by:
getName in interface SanityElementI

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

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