org.hudsonci.rest.model.build
Class BuildDTO

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

public class BuildDTO
extends Object

Java class for build complex type.

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

 <complexType name="build">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="type" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="url" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="number" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="projectName" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="duration" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
         <element name="timeStamp" type="{http://www.w3.org/2001/XMLSchema}long"/>
         <element name="result" type="{http://hudson-ci.org/xsd/hudson/2.1.0/rest/build}buildResult" minOccurs="0"/>
         <element name="state" type="{http://hudson-ci.org/xsd/hudson/2.1.0/rest/build}buildState" minOccurs="0"/>
         <element name="kept" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
         <element name="causes" type="{http://hudson-ci.org/xsd/hudson/2.1.0/rest/build}cause" maxOccurs="unbounded" minOccurs="0"/>
         <element name="participants" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
         <element name="culprits" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
         <element name="changesAvailable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
         <element name="testsAvailable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<CauseDTO> causes
           
protected  boolean changesAvailable
           
protected  List<String> culprits
           
protected  String description
           
protected  Long duration
           
protected  String id
           
protected  boolean kept
           
protected  int number
           
protected  List<String> participants
           
protected  String projectName
           
protected  BuildResultDTO result
           
protected  BuildStateDTO state
           
protected  boolean testsAvailable
           
protected  long timeStamp
           
protected  String type
           
protected  String url
           
 
Constructor Summary
BuildDTO()
           
 
Method Summary
 boolean equals(Object obj)
           
 List<CauseDTO> getCauses()
          Gets the value of the causes property.
 List<String> getCulprits()
          Gets the value of the culprits property.
 String getDescription()
          Gets the value of the description property.
 Long getDuration()
          Gets the value of the duration property.
 String getId()
          Gets the value of the id property.
 int getNumber()
          Gets the value of the number property.
 List<String> getParticipants()
          Gets the value of the participants property.
 String getProjectName()
          Gets the value of the projectName property.
 BuildResultDTO getResult()
          Gets the value of the result property.
 BuildStateDTO getState()
          Gets the value of the state property.
 long getTimeStamp()
          Gets the value of the timeStamp property.
 String getType()
          Gets the value of the type property.
 String getUrl()
          Gets the value of the url property.
 int hashCode()
           
 boolean isChangesAvailable()
          Gets the value of the changesAvailable property.
 boolean isKept()
          Gets the value of the kept property.
 boolean isTestsAvailable()
          Gets the value of the testsAvailable property.
 void setChangesAvailable(boolean value)
          Sets the value of the changesAvailable property.
 void setDescription(String value)
          Sets the value of the description property.
 void setDuration(Long value)
          Sets the value of the duration property.
 void setId(String value)
          Sets the value of the id property.
 void setKept(boolean value)
          Sets the value of the kept property.
 void setNumber(int value)
          Sets the value of the number property.
 void setProjectName(String value)
          Sets the value of the projectName property.
 void setResult(BuildResultDTO value)
          Sets the value of the result property.
 void setState(BuildStateDTO value)
          Sets the value of the state property.
 void setTestsAvailable(boolean value)
          Sets the value of the testsAvailable property.
 void setTimeStamp(long value)
          Sets the value of the timeStamp property.
 void setType(String value)
          Sets the value of the type property.
 void setUrl(String value)
          Sets the value of the url property.
 BuildDTO withCauses(CauseDTO... values)
           
 BuildDTO withCauses(Collection<CauseDTO> values)
           
 BuildDTO withChangesAvailable(boolean value)
           
 BuildDTO withCulprits(Collection<String> values)
           
 BuildDTO withCulprits(String... values)
           
 BuildDTO withDescription(String value)
           
 BuildDTO withDuration(Long value)
           
 BuildDTO withId(String value)
           
 BuildDTO withKept(boolean value)
           
 BuildDTO withNumber(int value)
           
 BuildDTO withParticipants(Collection<String> values)
           
 BuildDTO withParticipants(String... values)
           
 BuildDTO withProjectName(String value)
           
 BuildDTO withResult(BuildResultDTO value)
           
 BuildDTO withState(BuildStateDTO value)
           
 BuildDTO withTestsAvailable(boolean value)
           
 BuildDTO withTimeStamp(long value)
           
 BuildDTO withType(String value)
           
 BuildDTO withUrl(String value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected String type

url

protected String url

id

protected String id

number

protected int number

description

protected String description

projectName

protected String projectName

duration

protected Long duration

timeStamp

protected long timeStamp

result

protected BuildResultDTO result

state

protected BuildStateDTO state

kept

protected boolean kept

causes

protected List<CauseDTO> causes

participants

protected List<String> participants

culprits

protected List<String> culprits

changesAvailable

protected boolean changesAvailable

testsAvailable

protected boolean testsAvailable
Constructor Detail

BuildDTO

public BuildDTO()
Method Detail

getType

public String getType()
Gets the value of the type property.

Returns:
possible object is String

setType

public void setType(String value)
Sets the value of the type property.

Parameters:
value - allowed object is String

getUrl

public String getUrl()
Gets the value of the url property.

Returns:
possible object is String

setUrl

public void setUrl(String value)
Sets the value of the url property.

Parameters:
value - allowed object is String

getId

public String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

public void setId(String value)
Sets the value of the id property.

Parameters:
value - allowed object is String

getNumber

public int getNumber()
Gets the value of the number property.


setNumber

public void setNumber(int value)
Sets the value of the number property.


getDescription

public String getDescription()
Gets the value of the description property.

Returns:
possible object is String

setDescription

public void setDescription(String value)
Sets the value of the description property.

Parameters:
value - allowed object is String

getProjectName

public String getProjectName()
Gets the value of the projectName property.

Returns:
possible object is String

setProjectName

public void setProjectName(String value)
Sets the value of the projectName property.

Parameters:
value - allowed object is String

getDuration

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

Returns:
possible object is Long

setDuration

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

Parameters:
value - allowed object is Long

getTimeStamp

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


setTimeStamp

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


getResult

public BuildResultDTO getResult()
Gets the value of the result property.

Returns:
possible object is BuildResultDTO

setResult

public void setResult(BuildResultDTO value)
Sets the value of the result property.

Parameters:
value - allowed object is BuildResultDTO

getState

public BuildStateDTO getState()
Gets the value of the state property.

Returns:
possible object is BuildStateDTO

setState

public void setState(BuildStateDTO value)
Sets the value of the state property.

Parameters:
value - allowed object is BuildStateDTO

isKept

public boolean isKept()
Gets the value of the kept property.


setKept

public void setKept(boolean value)
Sets the value of the kept property.


getCauses

public List<CauseDTO> getCauses()
Gets the value of the causes 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 causes property.

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

    getCauses().add(newItem);
 

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


getParticipants

public List<String> getParticipants()
Gets the value of the participants 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 participants property.

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

    getParticipants().add(newItem);
 

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


getCulprits

public List<String> getCulprits()
Gets the value of the culprits 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 culprits property.

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

    getCulprits().add(newItem);
 

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


isChangesAvailable

public boolean isChangesAvailable()
Gets the value of the changesAvailable property.


setChangesAvailable

public void setChangesAvailable(boolean value)
Sets the value of the changesAvailable property.


isTestsAvailable

public boolean isTestsAvailable()
Gets the value of the testsAvailable property.


setTestsAvailable

public void setTestsAvailable(boolean value)
Sets the value of the testsAvailable property.


withType

public BuildDTO withType(String value)

withUrl

public BuildDTO withUrl(String value)

withId

public BuildDTO withId(String value)

withNumber

public BuildDTO withNumber(int value)

withDescription

public BuildDTO withDescription(String value)

withProjectName

public BuildDTO withProjectName(String value)

withDuration

public BuildDTO withDuration(Long value)

withTimeStamp

public BuildDTO withTimeStamp(long value)

withResult

public BuildDTO withResult(BuildResultDTO value)

withState

public BuildDTO withState(BuildStateDTO value)

withKept

public BuildDTO withKept(boolean value)

withCauses

public BuildDTO withCauses(CauseDTO... values)

withCauses

public BuildDTO withCauses(Collection<CauseDTO> values)

withParticipants

public BuildDTO withParticipants(String... values)

withParticipants

public BuildDTO withParticipants(Collection<String> values)

withCulprits

public BuildDTO withCulprits(String... values)

withCulprits

public BuildDTO withCulprits(Collection<String> values)

withChangesAvailable

public BuildDTO withChangesAvailable(boolean value)

withTestsAvailable

public BuildDTO withTestsAvailable(boolean value)

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.