org.hudsonci.maven.model.config
Class DocumentDTO

java.lang.Object
  extended by org.hudsonci.maven.model.config.DocumentDTO
All Implemented Interfaces:
Serializable

@Generated(value="XJC hudson-jaxb-ri-2.1-2",
           date="2011-12-06T19:15:37")
public class DocumentDTO
extends Object
implements Serializable

Java class for document complex type.

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

 <complexType name="document">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="content" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="attribute" type="{http://hudson-ci.org/xsd/hudson/2.1.0/maven/config}documentAttribute" maxOccurs="unbounded"/>
       </sequence>
       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="type" use="required" type="{http://hudson-ci.org/xsd/hudson/2.1.0/maven/config}documentType" />
     </restriction>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  List<DocumentAttributeDTO> attributes
           
protected  String content
           
protected  String description
           
protected  String id
           
protected  String name
           
protected  DocumentTypeDTO type
           
 
Constructor Summary
DocumentDTO()
           
 
Method Summary
 boolean equals(Object obj)
           
 Object getAttribute(Object name)
           
 List<DocumentAttributeDTO> getAttributes()
          Gets the value of the attributes property.
 String getContent()
          Gets the value of the content property.
 String getDescription()
          Gets the value of the description property.
 String getId()
          Gets the value of the id property.
 String getName()
          Gets the value of the name property.
 DocumentTypeDTO getType()
          Gets the value of the type property.
 int hashCode()
           
 void setAttribute(Object name, Object value)
           
 void setContent(String value)
          Sets the value of the content property.
 void setDescription(String value)
          Sets the value of the description property.
 void setId(String value)
          Sets the value of the id property.
 void setName(String value)
          Sets the value of the name property.
 void setType(DocumentTypeDTO value)
          Sets the value of the type property.
 String toString()
           
 DocumentDTO withAttribute(Object name, Object value)
           
 DocumentDTO withAttributes(Collection<DocumentAttributeDTO> values)
           
 DocumentDTO withAttributes(DocumentAttributeDTO... values)
           
 DocumentDTO withContent(String value)
           
 DocumentDTO withDescription(String value)
           
 DocumentDTO withId(String value)
           
 DocumentDTO withName(String value)
           
 DocumentDTO withType(DocumentTypeDTO value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

description

protected String description

content

protected String content

attributes

protected List<DocumentAttributeDTO> attributes

id

@XStreamAsAttribute
protected String id

name

@XStreamAsAttribute
protected String name

type

@XStreamAsAttribute
protected DocumentTypeDTO type
Constructor Detail

DocumentDTO

public DocumentDTO()
Method Detail

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

getContent

public String getContent()
Gets the value of the content property.

Returns:
possible object is String

setContent

public void setContent(String value)
Sets the value of the content property.

Parameters:
value - allowed object is String

getAttributes

public List<DocumentAttributeDTO> getAttributes()
Gets the value of the attributes 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 attributes property.

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

    getAttributes().add(newItem);
 

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


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

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

getType

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

Returns:
possible object is DocumentTypeDTO

setType

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

Parameters:
value - allowed object is DocumentTypeDTO

withDescription

public DocumentDTO withDescription(String value)

withContent

public DocumentDTO withContent(String value)

withAttributes

public DocumentDTO withAttributes(DocumentAttributeDTO... values)

withAttributes

public DocumentDTO withAttributes(Collection<DocumentAttributeDTO> values)

withId

public DocumentDTO withId(String value)

withName

public DocumentDTO withName(String value)

withType

public DocumentDTO withType(DocumentTypeDTO value)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

setAttribute

public void setAttribute(Object name,
                         Object value)

withAttribute

public DocumentDTO withAttribute(Object name,
                                 Object value)

getAttribute

public Object getAttribute(Object name)


Copyright © 2004-2011 Hudson. All Rights Reserved.