All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hudsonci.maven.model.PropertiesDTO Maven / Gradle / Ivy

The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2011.12.06 at 07:15:37 PM GMT 
//


package org.hudsonci.maven.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.annotation.Generated;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import org.codehaus.jackson.annotate.JsonProperty;


/**
 * 

Java class for properties complex type. * *

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

 * <complexType name="properties">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="entry" maxOccurs="unbounded">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                 <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "properties", propOrder = { "entries" }) @XStreamAlias("properties") @Generated(value = "XJC hudson-jaxb-ri-2.1-2", date = "2011-12-06T19:15:37") public class PropertiesDTO implements Serializable { private final static long serialVersionUID = 1L; @XmlElement(name = "entry", required = true) @JsonProperty("entries") protected List entries; /** * Gets the value of the entries 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 entries property. * *

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

     *    getEntries().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link PropertiesDTO.Entry } * * */ public List getEntries() { if (entries == null) { entries = new ArrayList(); } return this.entries; } public PropertiesDTO withEntries(PropertiesDTO.Entry... values) { if (values!= null) { for (PropertiesDTO.Entry value: values) { getEntries().add(value); } } return this; } public PropertiesDTO withEntries(Collection values) { if (values!= null) { getEntries().addAll(values); } return this; } @Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (this == obj) { return true; } if (!(obj instanceof PropertiesDTO)) { return false; } final PropertiesDTO that = ((PropertiesDTO) obj); final com.flipthebird.gwthashcodeequals.EqualsBuilder builder = new com.flipthebird.gwthashcodeequals.EqualsBuilder(); builder.append(this.getEntries(), that.getEntries()); return builder.build(); } @Override public int hashCode() { final com.flipthebird.gwthashcodeequals.HashCodeBuilder builder = new com.flipthebird.gwthashcodeequals.HashCodeBuilder(); builder.append(this.getEntries()); return builder.build(); } /** *

Java class for anonymous complex type. * *

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

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     *       <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @XStreamAlias("entry") @Generated(value = "XJC hudson-jaxb-ri-2.1-2", date = "2011-12-06T19:15:37") public static class Entry implements Serializable { private final static long serialVersionUID = 1L; @XmlAttribute(name = "name", required = true) @XStreamAsAttribute @JsonProperty("name") protected String name; @XmlAttribute(name = "value", required = true) @XStreamAsAttribute @JsonProperty("value") protected String value; /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the value property. * * @return * possible object is * {@link String } * */ public String getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link String } * */ public void setValue(String value) { this.value = value; } public PropertiesDTO.Entry withName(String value) { setName(value); return this; } public PropertiesDTO.Entry withValue(String value) { setValue(value); return this; } @Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (this == obj) { return true; } if (!(obj instanceof PropertiesDTO.Entry)) { return false; } final PropertiesDTO.Entry that = ((PropertiesDTO.Entry) obj); final com.flipthebird.gwthashcodeequals.EqualsBuilder builder = new com.flipthebird.gwthashcodeequals.EqualsBuilder(); builder.append(this.getName(), that.getName()); builder.append(this.getValue(), that.getValue()); return builder.build(); } @Override public int hashCode() { final com.flipthebird.gwthashcodeequals.HashCodeBuilder builder = new com.flipthebird.gwthashcodeequals.HashCodeBuilder(); builder.append(this.getName()); builder.append(this.getValue()); return builder.build(); } } public void set(Object name, Object value) { PropertiesDTOHelper.set(this, name, value); } public PropertiesDTO with(Object name, Object value) { set(name, value); return this; } public String get(Object name) { return PropertiesDTOHelper.get(this, name); } public boolean contains(Object name) { return PropertiesDTOHelper.contains(this, name); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy