org.exolab.jmscts.report
Class Coverage

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

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

This element lists the tests which have covered a particular requirement, and a count of any failures that occurred.

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

Constructor Summary
Coverage()
           
 
Method Summary
 void addTest(int index, java.lang.String vTest)
          Method addTest
 void addTest(java.lang.String vTest)
          Method addTest
 void clearTest()
          Method clearTest
 void deleteSupported()
          Method deleteSupported
 java.util.Enumeration enumerateTest()
          Method enumerateTest
 boolean equals(java.lang.Object obj)
          Note: hashCode() has not been overriden
 int getFailures()
          Returns the value of field 'failures'.
 java.lang.String getRequirementId()
          Returns the value of field 'requirementId'.
 int getRuns()
          Returns the value of field 'runs'.
 boolean getSupported()
          Returns the value of field 'supported'.
 java.lang.String[] getTest()
          Method getTest
 java.lang.String getTest(int index)
          Method getTest
 int getTestCount()
          Method getTestCount
 boolean hasFailures()
          Method hasFailures
 boolean hasRuns()
          Method hasRuns
 boolean hasSupported()
          Method hasSupported
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeTest(java.lang.String vTest)
          Method removeTest
 void setFailures(int failures)
          Sets the value of field 'failures'.
 void setRequirementId(java.lang.String requirementId)
          Sets the value of field 'requirementId'.
 void setRuns(int runs)
          Sets the value of field 'runs'.
 void setSupported(boolean supported)
          Sets the value of field 'supported'.
 void setTest(int index, java.lang.String vTest)
          Method setTest
 void setTest(java.lang.String[] testArray)
          Method setTest
static Coverage 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

Coverage

public Coverage()
Method Detail

addTest

public void addTest(java.lang.String vTest)
             throws java.lang.IndexOutOfBoundsException
Method addTest
Parameters:
vTest -  

addTest

public void addTest(int index,
                    java.lang.String vTest)
             throws java.lang.IndexOutOfBoundsException
Method addTest
Parameters:
index -  
vTest -  

clearTest

public void clearTest()
Method clearTest

deleteSupported

public void deleteSupported()
Method deleteSupported

enumerateTest

public java.util.Enumeration enumerateTest()
Method enumerateTest

equals

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

getFailures

public int getFailures()
Returns the value of field 'failures'.
Returns:
the value of field 'failures'.

getRequirementId

public java.lang.String getRequirementId()
Returns the value of field 'requirementId'.
Returns:
the value of field 'requirementId'.

getRuns

public int getRuns()
Returns the value of field 'runs'.
Returns:
the value of field 'runs'.

getSupported

public boolean getSupported()
Returns the value of field 'supported'.
Returns:
the value of field 'supported'.

getTest

public java.lang.String getTest(int index)
                         throws java.lang.IndexOutOfBoundsException
Method getTest
Parameters:
index -  

getTest

public java.lang.String[] getTest()
Method getTest

getTestCount

public int getTestCount()
Method getTestCount

hasFailures

public boolean hasFailures()
Method hasFailures

hasRuns

public boolean hasRuns()
Method hasRuns

hasSupported

public boolean hasSupported()
Method hasSupported

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 -  

removeTest

public boolean removeTest(java.lang.String vTest)
Method removeTest
Parameters:
vTest -  

setFailures

public void setFailures(int failures)
Sets the value of field 'failures'.
Parameters:
failures - the value of field 'failures'.

setRequirementId

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

setRuns

public void setRuns(int runs)
Sets the value of field 'runs'.
Parameters:
runs - the value of field 'runs'.

setSupported

public void setSupported(boolean supported)
Sets the value of field 'supported'.
Parameters:
supported - the value of field 'supported'.

setTest

public void setTest(int index,
                    java.lang.String vTest)
             throws java.lang.IndexOutOfBoundsException
Method setTest
Parameters:
index -  
vTest -  

setTest

public void setTest(java.lang.String[] testArray)
Method setTest
Parameters:
testArray -  

unmarshal

public static Coverage 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.