org.hudsonci.rest.model.fault
Class FaultDTO

java.lang.Object
  extended by org.hudsonci.rest.model.fault.FaultDTO

public class FaultDTO
extends Object

Java class for fault complex type.

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

 <complexType name="fault">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="detail" type="{http://hudson-ci.org/xsd/hudson/2.1.0/rest/fault}faultDetail" maxOccurs="unbounded"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<FaultDetailDTO> details
           
protected  String id
           
 
Constructor Summary
FaultDTO()
           
 
Method Summary
 boolean equals(Object obj)
           
 List<FaultDetailDTO> getDetails()
          Gets the value of the details property.
 String getId()
          Gets the value of the id property.
 int hashCode()
           
 void setId(String value)
          Sets the value of the id property.
 FaultDTO withDetails(Collection<FaultDetailDTO> values)
           
 FaultDTO withDetails(FaultDetailDTO... values)
           
 FaultDTO withId(String value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected String id

details

protected List<FaultDetailDTO> details
Constructor Detail

FaultDTO

public FaultDTO()
Method Detail

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

getDetails

public List<FaultDetailDTO> getDetails()
Gets the value of the details 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 details property.

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

    getDetails().add(newItem);
 

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


withId

public FaultDTO withId(String value)

withDetails

public FaultDTO withDetails(FaultDetailDTO... values)

withDetails

public FaultDTO withDetails(Collection<FaultDetailDTO> 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.