org.exolab.jmscts.report
Class RequirementCoverage

java.lang.Object
  |
  +--org.exolab.jmscts.report.RequirementCoverage
All Implemented Interfaces:
java.io.Serializable

public class RequirementCoverage
extends java.lang.Object
implements java.io.Serializable

The requirementCoverage element is the root element of all test case requirement coverage documents.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
RequirementCoverage()
           
 
Method Summary
 void addCoverage(Coverage vCoverage)
          Method addCoverage
 void addCoverage(int index, Coverage vCoverage)
          Method addCoverage
 void addFailure(Failure vFailure)
          Method addFailure
 void addFailure(int index, Failure vFailure)
          Method addFailure
 void addTestRuns(int index, TestRuns vTestRuns)
          Method addTestRuns
 void addTestRuns(TestRuns vTestRuns)
          Method addTestRuns
 void clearCoverage()
          Method clearCoverage
 void clearFailure()
          Method clearFailure
 void clearTestRuns()
          Method clearTestRuns
 java.util.Enumeration enumerateCoverage()
          Method enumerateCoverage
 java.util.Enumeration enumerateFailure()
          Method enumerateFailure
 java.util.Enumeration enumerateTestRuns()
          Method enumerateTestRuns
 boolean equals(java.lang.Object obj)
          Note: hashCode() has not been overriden
 Coverage[] getCoverage()
          Method getCoverage
 Coverage getCoverage(int index)
          Method getCoverage
 int getCoverageCount()
          Method getCoverageCount
 CurrentTest getCurrentTest()
          Returns the value of field 'currentTest'.
 Failure[] getFailure()
          Method getFailure
 Failure getFailure(int index)
          Method getFailure
 int getFailureCount()
          Method getFailureCount
 java.lang.String getProvider()
          Returns the value of field 'provider'.
 TestRuns[] getTestRuns()
          Method getTestRuns
 TestRuns getTestRuns(int index)
          Method getTestRuns
 int getTestRunsCount()
          Method getTestRunsCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeCoverage(Coverage vCoverage)
          Method removeCoverage
 boolean removeFailure(Failure vFailure)
          Method removeFailure
 boolean removeTestRuns(TestRuns vTestRuns)
          Method removeTestRuns
 void setCoverage(Coverage[] coverageArray)
          Method setCoverage
 void setCoverage(int index, Coverage vCoverage)
          Method setCoverage
 void setCurrentTest(CurrentTest currentTest)
          Sets the value of field 'currentTest'.
 void setFailure(Failure[] failureArray)
          Method setFailure
 void setFailure(int index, Failure vFailure)
          Method setFailure
 void setProvider(java.lang.String provider)
          Sets the value of field 'provider'.
 void setTestRuns(int index, TestRuns vTestRuns)
          Method setTestRuns
 void setTestRuns(TestRuns[] testRunsArray)
          Method setTestRuns
static RequirementCoverage unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequirementCoverage

public RequirementCoverage()
Method Detail

addCoverage

public void addCoverage(Coverage vCoverage)
                 throws java.lang.IndexOutOfBoundsException
Method addCoverage
Parameters:
vCoverage -  

addCoverage

public void addCoverage(int index,
                        Coverage vCoverage)
                 throws java.lang.IndexOutOfBoundsException
Method addCoverage
Parameters:
index -  
vCoverage -  

addFailure

public void addFailure(Failure vFailure)
                throws java.lang.IndexOutOfBoundsException
Method addFailure
Parameters:
vFailure -  

addFailure

public void addFailure(int index,
                       Failure vFailure)
                throws java.lang.IndexOutOfBoundsException
Method addFailure
Parameters:
index -  
vFailure -  

addTestRuns

public void addTestRuns(TestRuns vTestRuns)
                 throws java.lang.IndexOutOfBoundsException
Method addTestRuns
Parameters:
vTestRuns -  

addTestRuns

public void addTestRuns(int index,
                        TestRuns vTestRuns)
                 throws java.lang.IndexOutOfBoundsException
Method addTestRuns
Parameters:
index -  
vTestRuns -  

clearCoverage

public void clearCoverage()
Method clearCoverage

clearFailure

public void clearFailure()
Method clearFailure

clearTestRuns

public void clearTestRuns()
Method clearTestRuns

enumerateCoverage

public java.util.Enumeration enumerateCoverage()
Method enumerateCoverage

enumerateFailure

public java.util.Enumeration enumerateFailure()
Method enumerateFailure

enumerateTestRuns

public java.util.Enumeration enumerateTestRuns()
Method enumerateTestRuns

equals

public boolean equals(java.lang.Object obj)
Note: hashCode() has not been overriden
Overrides:
equals in class java.lang.Object
Parameters:
obj -  

getCoverage

public Coverage getCoverage(int index)
                     throws java.lang.IndexOutOfBoundsException
Method getCoverage
Parameters:
index -  

getCoverage

public Coverage[] getCoverage()
Method getCoverage

getCoverageCount

public int getCoverageCount()
Method getCoverageCount

getCurrentTest

public CurrentTest getCurrentTest()
Returns the value of field 'currentTest'. The field 'currentTest' has the following description: This element details the state of the current executing test
Returns:
the value of field 'currentTest'.

getFailure

public Failure getFailure(int index)
                   throws java.lang.IndexOutOfBoundsException
Method getFailure
Parameters:
index -  

getFailure

public Failure[] getFailure()
Method getFailure

getFailureCount

public int getFailureCount()
Method getFailureCount

getProvider

public java.lang.String getProvider()
Returns the value of field 'provider'.
Returns:
the value of field 'provider'.

getTestRuns

public TestRuns getTestRuns(int index)
                     throws java.lang.IndexOutOfBoundsException
Method getTestRuns
Parameters:
index -  

getTestRuns

public TestRuns[] getTestRuns()
Method getTestRuns

getTestRunsCount

public int getTestRunsCount()
Method getTestRunsCount

isValid

public boolean isValid()
Method isValid

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal
Parameters:
out -  

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal
Parameters:
handler -  

removeCoverage

public boolean removeCoverage(Coverage vCoverage)
Method removeCoverage
Parameters:
vCoverage -  

removeFailure

public boolean removeFailure(Failure vFailure)
Method removeFailure
Parameters:
vFailure -  

removeTestRuns

public boolean removeTestRuns(TestRuns vTestRuns)
Method removeTestRuns
Parameters:
vTestRuns -  

setCoverage

public void setCoverage(int index,
                        Coverage vCoverage)
                 throws java.lang.IndexOutOfBoundsException
Method setCoverage
Parameters:
index -  
vCoverage -  

setCoverage

public void setCoverage(Coverage[] coverageArray)
Method setCoverage
Parameters:
coverageArray -  

setCurrentTest

public void setCurrentTest(CurrentTest currentTest)
Sets the value of field 'currentTest'. The field 'currentTest' has the following description: This element details the state of the current executing test
Parameters:
currentTest - the value of field 'currentTest'.

setFailure

public void setFailure(int index,
                       Failure vFailure)
                throws java.lang.IndexOutOfBoundsException
Method setFailure
Parameters:
index -  
vFailure -  

setFailure

public void setFailure(Failure[] failureArray)
Method setFailure
Parameters:
failureArray -  

setProvider

public void setProvider(java.lang.String provider)
Sets the value of field 'provider'.
Parameters:
provider - the value of field 'provider'.

setTestRuns

public void setTestRuns(int index,
                        TestRuns vTestRuns)
                 throws java.lang.IndexOutOfBoundsException
Method setTestRuns
Parameters:
index -  
vTestRuns -  

setTestRuns

public void setTestRuns(TestRuns[] testRunsArray)
Method setTestRuns
Parameters:
testRunsArray -  

unmarshal

public static RequirementCoverage unmarshal(java.io.Reader reader)
                                     throws org.exolab.castor.xml.MarshalException,
                                            org.exolab.castor.xml.ValidationException
Method unmarshal
Parameters:
reader -  

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate


Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.