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

org.hudsonci.maven.model.state.ProfileDTO Maven / Gradle / Ivy

//
// 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: 2012.06.15 at 07:34:37 PM PDT 
//


package org.hudsonci.maven.model.state;

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.XmlElement;
import javax.xml.bind.annotation.XmlType;
import com.flipthebird.gwthashcodeequals.EqualsBuilder;
import com.flipthebird.gwthashcodeequals.HashCodeBuilder;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import org.codehaus.jackson.annotate.JsonProperty;


/**
 * 

Java class for profile complex type. * *

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

 * <complexType name="profile">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="source" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="active" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "profile", propOrder = { "id", "source", "active" }) @XStreamAlias("profile") @Generated(value = "XJC hudson-jaxb-ri-2.1-2", date = "2012-06-15T19:34:37") public class ProfileDTO implements Serializable { private final static long serialVersionUID = 1L; @XmlElement(required = true) @JsonProperty("id") protected String id; @XmlElement(required = true) @JsonProperty("source") protected String source; @JsonProperty("active") protected boolean active; /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * Gets the value of the source property. * * @return * possible object is * {@link String } * */ public String getSource() { return source; } /** * Sets the value of the source property. * * @param value * allowed object is * {@link String } * */ public void setSource(String value) { this.source = value; } /** * Gets the value of the active property. * */ public boolean isActive() { return active; } /** * Sets the value of the active property. * */ public void setActive(boolean value) { this.active = value; } public ProfileDTO withId(String value) { setId(value); return this; } public ProfileDTO withSource(String value) { setSource(value); return this; } public ProfileDTO withActive(boolean value) { setActive(value); return this; } @Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (this == obj) { return true; } if (!(obj instanceof ProfileDTO)) { return false; } final ProfileDTO that = ((ProfileDTO) obj); final EqualsBuilder builder = new EqualsBuilder(); builder.append(this.getId(), that.getId()); builder.append(this.getSource(), that.getSource()); builder.append(this.isActive(), that.isActive()); return builder.build(); } @Override public int hashCode() { final HashCodeBuilder builder = new HashCodeBuilder(); builder.append(this.getId()); builder.append(this.getSource()); builder.append(this.isActive()); return builder.build(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy