org.hudsonci.rest.model.build
Class TestSuiteDTO

java.lang.Object
  extended by org.hudsonci.rest.model.build.TestSuiteDTO

public class TestSuiteDTO
extends Object

Java class for testSuite complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="testSuite">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="timeStamp" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="duration" type="{http://www.w3.org/2001/XMLSchema}float"/>
         <element name="case" type="{http://hudson-ci.org/xsd/hudson/2.1.0/rest/build}testCase" maxOccurs="unbounded"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<TestCaseDTO> cases
           
protected  float duration
           
protected  String name
           
protected  String timeStamp
           
 
Constructor Summary
TestSuiteDTO()
           
 
Method Summary
 boolean equals(Object obj)
           
 List<TestCaseDTO> getCases()
          Gets the value of the cases property.
 float getDuration()
          Gets the value of the duration property.
 String getName()
          Gets the value of the name property.
 String getTimeStamp()
          Gets the value of the timeStamp property.
 int hashCode()
           
 void setDuration(float value)
          Sets the value of the duration property.
 void setName(String value)
          Sets the value of the name property.
 void setTimeStamp(String value)
          Sets the value of the timeStamp property.
 TestSuiteDTO withCases(Collection<TestCaseDTO> values)
           
 TestSuiteDTO withCases(TestCaseDTO... values)
           
 TestSuiteDTO withDuration(float value)
           
 TestSuiteDTO withName(String value)
           
 TestSuiteDTO withTimeStamp(String value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name

timeStamp

protected String timeStamp

duration

protected float duration

cases

protected List<TestCaseDTO> cases
Constructor Detail

TestSuiteDTO

public TestSuiteDTO()
Method Detail

getName

public String getName()
Gets the value of the name property.

Returns:
possible object is String

setName

public void setName(String value)
Sets the value of the name property.

Parameters:
value - allowed object is String

getTimeStamp

public String getTimeStamp()
Gets the value of the timeStamp property.

Returns:
possible object is String

setTimeStamp

public void setTimeStamp(String value)
Sets the value of the timeStamp property.

Parameters:
value - allowed object is String

getDuration

public float getDuration()
Gets the value of the duration property.


setDuration

public void setDuration(float value)
Sets the value of the duration property.


getCases

public List<TestCaseDTO> getCases()
Gets the value of the cases property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the cases property.

For example, to add a new item, do as follows:

    getCases().add(newItem);
 

Objects of the following type(s) are allowed in the list TestCaseDTO


withName

public TestSuiteDTO withName(String value)

withTimeStamp

public TestSuiteDTO withTimeStamp(String value)

withDuration

public TestSuiteDTO withDuration(float value)

withCases

public TestSuiteDTO withCases(TestCaseDTO... values)

withCases

public TestSuiteDTO withCases(Collection<TestCaseDTO> values)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2004-2011 Hudson. All Rights Reserved.