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

eu.fispace.api.ag.SearchForFarmersRequest Maven / Gradle / Ivy

The newest version!
//
// Este archivo ha sido generado por la arquitectura JavaTM para la implantación de la referencia de enlace (JAXB) XML v2.2.7 
// Visite http://java.sun.com/xml/jaxb 
// Todas las modificaciones realizadas en este archivo se perderán si se vuelve a compilar el esquema de origen. 
// Generado el: 2016.06.30 a las 10:15:50 PM CEST 
//


package eu.fispace.api.ag;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import eu.limetri.ygg.api.RequestMessage;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;


/**
 * 
 *                     This class ........
 *                 
 * 
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "farmerName",
    "city",
    "municipality",
    "vatId",
    "generalProductCategory",
    "specificProductCategory"
})
@XmlRootElement(name = "SearchForFarmersRequest")
public class SearchForFarmersRequest
    extends RequestMessage
    implements Serializable, ToString
{

    @XmlElement(required = true)
    protected String farmerName;
    @XmlElement(required = true)
    protected String city;
    @XmlElement(required = true)
    protected String municipality;
    @XmlElement(required = true)
    protected String vatId;
    @XmlElement(required = true)
    protected String generalProductCategory;
    @XmlElement(required = true)
    protected String specificProductCategory;

    /**
     * Obtiene el valor de la propiedad farmerName.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getFarmerName() {
        return farmerName;
    }

    /**
     * Define el valor de la propiedad farmerName.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setFarmerName(String value) {
        this.farmerName = value;
    }

    public boolean isSetFarmerName() {
        return (this.farmerName!= null);
    }

    /**
     * Obtiene el valor de la propiedad city.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getCity() {
        return city;
    }

    /**
     * Define el valor de la propiedad city.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setCity(String value) {
        this.city = value;
    }

    public boolean isSetCity() {
        return (this.city!= null);
    }

    /**
     * Obtiene el valor de la propiedad municipality.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getMunicipality() {
        return municipality;
    }

    /**
     * Define el valor de la propiedad municipality.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setMunicipality(String value) {
        this.municipality = value;
    }

    public boolean isSetMunicipality() {
        return (this.municipality!= null);
    }

    /**
     * Obtiene el valor de la propiedad vatId.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getVatId() {
        return vatId;
    }

    /**
     * Define el valor de la propiedad vatId.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setVatId(String value) {
        this.vatId = value;
    }

    public boolean isSetVatId() {
        return (this.vatId!= null);
    }

    /**
     * Obtiene el valor de la propiedad generalProductCategory.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getGeneralProductCategory() {
        return generalProductCategory;
    }

    /**
     * Define el valor de la propiedad generalProductCategory.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setGeneralProductCategory(String value) {
        this.generalProductCategory = value;
    }

    public boolean isSetGeneralProductCategory() {
        return (this.generalProductCategory!= null);
    }

    /**
     * Obtiene el valor de la propiedad specificProductCategory.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getSpecificProductCategory() {
        return specificProductCategory;
    }

    /**
     * Define el valor de la propiedad specificProductCategory.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setSpecificProductCategory(String value) {
        this.specificProductCategory = value;
    }

    public boolean isSetSpecificProductCategory() {
        return (this.specificProductCategory!= null);
    }

    public String toString() {
        final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
        final StringBuilder buffer = new StringBuilder();
        append(null, buffer, strategy);
        return buffer.toString();
    }

    public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
        strategy.appendStart(locator, this, buffer);
        appendFields(locator, buffer, strategy);
        strategy.appendEnd(locator, this, buffer);
        return buffer;
    }

    public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
        super.appendFields(locator, buffer, strategy);
        {
            String theFarmerName;
            theFarmerName = this.getFarmerName();
            strategy.appendField(locator, this, "farmerName", buffer, theFarmerName);
        }
        {
            String theCity;
            theCity = this.getCity();
            strategy.appendField(locator, this, "city", buffer, theCity);
        }
        {
            String theMunicipality;
            theMunicipality = this.getMunicipality();
            strategy.appendField(locator, this, "municipality", buffer, theMunicipality);
        }
        {
            String theVatId;
            theVatId = this.getVatId();
            strategy.appendField(locator, this, "vatId", buffer, theVatId);
        }
        {
            String theGeneralProductCategory;
            theGeneralProductCategory = this.getGeneralProductCategory();
            strategy.appendField(locator, this, "generalProductCategory", buffer, theGeneralProductCategory);
        }
        {
            String theSpecificProductCategory;
            theSpecificProductCategory = this.getSpecificProductCategory();
            strategy.appendField(locator, this, "specificProductCategory", buffer, theSpecificProductCategory);
        }
        return buffer;
    }

    public SearchForFarmersRequest withFarmerName(String value) {
        setFarmerName(value);
        return this;
    }

    public SearchForFarmersRequest withCity(String value) {
        setCity(value);
        return this;
    }

    public SearchForFarmersRequest withMunicipality(String value) {
        setMunicipality(value);
        return this;
    }

    public SearchForFarmersRequest withVatId(String value) {
        setVatId(value);
        return this;
    }

    public SearchForFarmersRequest withGeneralProductCategory(String value) {
        setGeneralProductCategory(value);
        return this;
    }

    public SearchForFarmersRequest withSpecificProductCategory(String value) {
        setSpecificProductCategory(value);
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy