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

org.hudsonci.maven.model.config.DocumentAttributeDTO 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.config;

import java.io.Serializable;
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.XmlType;
import com.flipthebird.gwthashcodeequals.EqualsBuilder;
import com.flipthebird.gwthashcodeequals.HashCodeBuilder;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import org.codehaus.jackson.annotate.JsonProperty;


/**
 * 

Java class for documentAttribute complex type. * *

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

 * <complexType name="documentAttribute">
 *   <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 = "documentAttribute") @XStreamAlias("documentAttribute") @Generated(value = "XJC hudson-jaxb-ri-2.1-2", date = "2011-12-06T19:15:37") public class DocumentAttributeDTO 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 DocumentAttributeDTO withName(String value) { setName(value); return this; } public DocumentAttributeDTO 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 DocumentAttributeDTO)) { return false; } final DocumentAttributeDTO that = ((DocumentAttributeDTO) obj); final EqualsBuilder builder = new EqualsBuilder(); builder.append(this.getName(), that.getName()); builder.append(this.getValue(), that.getValue()); return builder.build(); } @Override public int hashCode() { final HashCodeBuilder builder = new HashCodeBuilder(); builder.append(this.getName()); builder.append(this.getValue()); return builder.build(); } @Override public String toString() { return DocumentAttributeDTOHelper.asString(this); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy