org.gusdb.wdk.model.test
Class SanityModel
java.lang.Object
org.gusdb.wdk.model.test.SanityModel
public class SanityModel
- extends java.lang.Object
SanityModel.java
Model used in a sanity test. Contains all sanity elements representing
records and queries that will be excercised over the course of the sanity
test.
Created: Mon August 23 12:00:00 2004 EDT
|
Field Summary |
static SanityModel |
INSTANCE
Instance object used by SanityTestXmlParser to create a SanityModel if no
schema is provided. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
INSTANCE
public static final SanityModel INSTANCE
- Instance object used by SanityTestXmlParser to create a SanityModel if no
schema is provided.
SanityModel
public SanityModel()
addSanityRecord
public void addSanityRecord(SanityRecord sanityRecord)
throws WdkModelException
- Throws:
WdkModelException
getAllSanityRecords
public SanityRecord[] getAllSanityRecords()
hasSanityRecord
public boolean hasSanityRecord(java.lang.String recordName)
- Parameters:
recordName - Two-part name (recordSetName.recordName) of the record
in question.return - True if the model contains one or more SanityRecords for
the given recordName.
addSanityQuery
public void addSanityQuery(SanityQueryOrQuestion sanityQuery)
throws WdkModelException
- Throws:
WdkModelException
getAllSanityQueries
public SanityQuery[] getAllSanityQueries()
hasSanityQuery
public boolean hasSanityQuery(java.lang.String queryName)
- Parameters:
queryName - Two-part name (querySetName.queryName) of the query in
question.return - True if the model contains one or more SanityQueries for
the given queryName.
addSanityQuestion
public void addSanityQuestion(SanityQueryOrQuestion sanityQuestion)
throws WdkModelException
- Throws:
WdkModelException
getAllSanityQuestions
public SanityQuestion[] getAllSanityQuestions()
hasSanityQuestion
public boolean hasSanityQuestion(java.lang.String queryName)
- Parameters:
queryName - Two-part name (querySetName.queryName) of the query in
question.return - True if the model contains one or more SanityQuestions for
the given queryName.
addSanityXmlQuestion
public void addSanityXmlQuestion(SanityXmlQuestion question)
getSanityQuestions
public SanityXmlQuestion[] getSanityQuestions()
hasSanityXmlQuestion
public boolean hasSanityXmlQuestion(java.lang.String ref)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getDocument
public org.w3c.dom.Document getDocument()
setDocument
public void setDocument(org.w3c.dom.Document document)