org.hudsonci.rest.model.project
Class ProjectDTO

java.lang.Object
  extended by org.hudsonci.rest.model.project.ProjectDTO

public class ProjectDTO
extends Object

Java class for project complex type.

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

 <complexType name="project">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="ref" type="{http://hudson-ci.org/xsd/hudson/2.1.0/rest/project}projectReference"/>
         <element name="type" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="url" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="title" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
         <element name="configurable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
         <element name="concurrent" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
         <element name="queued" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
         <element name="lastBuild" type="{http://hudson-ci.org/xsd/hudson/2.1.0/rest/build}build" minOccurs="0"/>
         <element name="blocked" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
         <element name="blockedReason" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="health" type="{http://hudson-ci.org/xsd/hudson/2.1.0/rest/project}health" minOccurs="0"/>
         <element name="parent" type="{http://hudson-ci.org/xsd/hudson/2.1.0/rest/project}projectReference"/>
         <element name="descendant" type="{http://hudson-ci.org/xsd/hudson/2.1.0/rest/project}projectReference" maxOccurs="unbounded"/>
         <element name="upstream" type="{http://hudson-ci.org/xsd/hudson/2.1.0/rest/project}projectReference" maxOccurs="unbounded"/>
         <element name="downstream" type="{http://hudson-ci.org/xsd/hudson/2.1.0/rest/project}projectReference" maxOccurs="unbounded"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  Boolean blocked
           
protected  String blockedReason
           
protected  boolean concurrent
           
protected  boolean configurable
           
protected  List<ProjectReferenceDTO> descendants
           
protected  String description
           
protected  List<ProjectReferenceDTO> downstreams
           
protected  boolean enabled
           
protected  HealthDTO health
           
protected  String id
           
protected  BuildDTO lastBuild
           
protected  String name
           
protected  ProjectReferenceDTO parent
           
protected  boolean queued
           
protected  ProjectReferenceDTO ref
           
protected  String title
           
protected  String type
           
protected  List<ProjectReferenceDTO> upstreams
           
protected  String url
           
 
Constructor Summary
ProjectDTO()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getBlockedReason()
          Gets the value of the blockedReason property.
 List<ProjectReferenceDTO> getDescendants()
          Gets the value of the descendants property.
 String getDescription()
          Gets the value of the description property.
 List<ProjectReferenceDTO> getDownstreams()
          Gets the value of the downstreams property.
 HealthDTO getHealth()
          Gets the value of the health property.
 String getId()
          Gets the value of the id property.
 BuildDTO getLastBuild()
          Gets the value of the lastBuild property.
 String getName()
          Gets the value of the name property.
 ProjectReferenceDTO getParent()
          Gets the value of the parent property.
 ProjectReferenceDTO getRef()
          Gets the value of the ref property.
 String getTitle()
          Gets the value of the title property.
 String getType()
          Gets the value of the type property.
 List<ProjectReferenceDTO> getUpstreams()
          Gets the value of the upstreams property.
 String getUrl()
          Gets the value of the url property.
 int hashCode()
           
 Boolean isBlocked()
          Gets the value of the blocked property.
 boolean isConcurrent()
          Gets the value of the concurrent property.
 boolean isConfigurable()
          Gets the value of the configurable property.
 boolean isEnabled()
          Gets the value of the enabled property.
 boolean isQueued()
          Gets the value of the queued property.
 void setBlocked(Boolean value)
          Sets the value of the blocked property.
 void setBlockedReason(String value)
          Sets the value of the blockedReason property.
 void setConcurrent(boolean value)
          Sets the value of the concurrent property.
 void setConfigurable(boolean value)
          Sets the value of the configurable property.
 void setDescription(String value)
          Sets the value of the description property.
 void setEnabled(boolean value)
          Sets the value of the enabled property.
 void setHealth(HealthDTO value)
          Sets the value of the health property.
 void setId(String value)
          Sets the value of the id property.
 void setLastBuild(BuildDTO value)
          Sets the value of the lastBuild property.
 void setName(String value)
          Sets the value of the name property.
 void setParent(ProjectReferenceDTO value)
          Sets the value of the parent property.
 void setQueued(boolean value)
          Sets the value of the queued property.
 void setRef(ProjectReferenceDTO value)
          Sets the value of the ref property.
 void setTitle(String value)
          Sets the value of the title property.
 void setType(String value)
          Sets the value of the type property.
 void setUrl(String value)
          Sets the value of the url property.
 ProjectDTO withBlocked(Boolean value)
           
 ProjectDTO withBlockedReason(String value)
           
 ProjectDTO withConcurrent(boolean value)
           
 ProjectDTO withConfigurable(boolean value)
           
 ProjectDTO withDescendants(Collection<ProjectReferenceDTO> values)
           
 ProjectDTO withDescendants(ProjectReferenceDTO... values)
           
 ProjectDTO withDescription(String value)
           
 ProjectDTO withDownstreams(Collection<ProjectReferenceDTO> values)
           
 ProjectDTO withDownstreams(ProjectReferenceDTO... values)
           
 ProjectDTO withEnabled(boolean value)
           
 ProjectDTO withHealth(HealthDTO value)
           
 ProjectDTO withId(String value)
           
 ProjectDTO withLastBuild(BuildDTO value)
           
 ProjectDTO withName(String value)
           
 ProjectDTO withParent(ProjectReferenceDTO value)
           
 ProjectDTO withQueued(boolean value)
           
 ProjectDTO withRef(ProjectReferenceDTO value)
           
 ProjectDTO withTitle(String value)
           
 ProjectDTO withType(String value)
           
 ProjectDTO withUpstreams(Collection<ProjectReferenceDTO> values)
           
 ProjectDTO withUpstreams(ProjectReferenceDTO... values)
           
 ProjectDTO withUrl(String value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ref

protected ProjectReferenceDTO ref

type

protected String type

id

protected String id

url

protected String url

name

protected String name

title

protected String title

description

protected String description

enabled

protected boolean enabled

configurable

protected boolean configurable

concurrent

protected boolean concurrent

queued

protected boolean queued

lastBuild

protected BuildDTO lastBuild

blocked

protected Boolean blocked

blockedReason

protected String blockedReason

health

protected HealthDTO health

parent

protected ProjectReferenceDTO parent

descendants

protected List<ProjectReferenceDTO> descendants

upstreams

protected List<ProjectReferenceDTO> upstreams

downstreams

protected List<ProjectReferenceDTO> downstreams
Constructor Detail

ProjectDTO

public ProjectDTO()
Method Detail

getRef

public ProjectReferenceDTO getRef()
Gets the value of the ref property.

Returns:
possible object is ProjectReferenceDTO

setRef

public void setRef(ProjectReferenceDTO value)
Sets the value of the ref property.

Parameters:
value - allowed object is ProjectReferenceDTO

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

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

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

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

getTitle

public String getTitle()
Gets the value of the title property.

Returns:
possible object is String

setTitle

public void setTitle(String value)
Sets the value of the title property.

Parameters:
value - allowed object is String

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

isEnabled

public boolean isEnabled()
Gets the value of the enabled property.


setEnabled

public void setEnabled(boolean value)
Sets the value of the enabled property.


isConfigurable

public boolean isConfigurable()
Gets the value of the configurable property.


setConfigurable

public void setConfigurable(boolean value)
Sets the value of the configurable property.


isConcurrent

public boolean isConcurrent()
Gets the value of the concurrent property.


setConcurrent

public void setConcurrent(boolean value)
Sets the value of the concurrent property.


isQueued

public boolean isQueued()
Gets the value of the queued property.


setQueued

public void setQueued(boolean value)
Sets the value of the queued property.


getLastBuild

public BuildDTO getLastBuild()
Gets the value of the lastBuild property.

Returns:
possible object is BuildDTO

setLastBuild

public void setLastBuild(BuildDTO value)
Sets the value of the lastBuild property.

Parameters:
value - allowed object is BuildDTO

isBlocked

public Boolean isBlocked()
Gets the value of the blocked property.

Returns:
possible object is Boolean

setBlocked

public void setBlocked(Boolean value)
Sets the value of the blocked property.

Parameters:
value - allowed object is Boolean

getBlockedReason

public String getBlockedReason()
Gets the value of the blockedReason property.

Returns:
possible object is String

setBlockedReason

public void setBlockedReason(String value)
Sets the value of the blockedReason property.

Parameters:
value - allowed object is String

getHealth

public HealthDTO getHealth()
Gets the value of the health property.

Returns:
possible object is HealthDTO

setHealth

public void setHealth(HealthDTO value)
Sets the value of the health property.

Parameters:
value - allowed object is HealthDTO

getParent

public ProjectReferenceDTO getParent()
Gets the value of the parent property.

Returns:
possible object is ProjectReferenceDTO

setParent

public void setParent(ProjectReferenceDTO value)
Sets the value of the parent property.

Parameters:
value - allowed object is ProjectReferenceDTO

getDescendants

public List<ProjectReferenceDTO> getDescendants()
Gets the value of the descendants 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 descendants property.

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

    getDescendants().add(newItem);
 

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


getUpstreams

public List<ProjectReferenceDTO> getUpstreams()
Gets the value of the upstreams 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 upstreams property.

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

    getUpstreams().add(newItem);
 

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


getDownstreams

public List<ProjectReferenceDTO> getDownstreams()
Gets the value of the downstreams 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 downstreams property.

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

    getDownstreams().add(newItem);
 

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


withRef

public ProjectDTO withRef(ProjectReferenceDTO value)

withType

public ProjectDTO withType(String value)

withId

public ProjectDTO withId(String value)

withUrl

public ProjectDTO withUrl(String value)

withName

public ProjectDTO withName(String value)

withTitle

public ProjectDTO withTitle(String value)

withDescription

public ProjectDTO withDescription(String value)

withEnabled

public ProjectDTO withEnabled(boolean value)

withConfigurable

public ProjectDTO withConfigurable(boolean value)

withConcurrent

public ProjectDTO withConcurrent(boolean value)

withQueued

public ProjectDTO withQueued(boolean value)

withLastBuild

public ProjectDTO withLastBuild(BuildDTO value)

withBlocked

public ProjectDTO withBlocked(Boolean value)

withBlockedReason

public ProjectDTO withBlockedReason(String value)

withHealth

public ProjectDTO withHealth(HealthDTO value)

withParent

public ProjectDTO withParent(ProjectReferenceDTO value)

withDescendants

public ProjectDTO withDescendants(ProjectReferenceDTO... values)

withDescendants

public ProjectDTO withDescendants(Collection<ProjectReferenceDTO> values)

withUpstreams

public ProjectDTO withUpstreams(ProjectReferenceDTO... values)

withUpstreams

public ProjectDTO withUpstreams(Collection<ProjectReferenceDTO> values)

withDownstreams

public ProjectDTO withDownstreams(ProjectReferenceDTO... values)

withDownstreams

public ProjectDTO withDownstreams(Collection<ProjectReferenceDTO> 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.