
eu.fispace.api.ag.ScheduleRequest Maven / Gradle / Ivy
//
// 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.04.10 a las 11:14:17 AM 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.drmcrop.crp.Farm;
import org.drmcrop.crp.SchedulingPeriod;
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 gives the information for a request for for
* providing a schedule for a Farm for a certain time period.
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"farm",
"schedulingPeriod"
})
@XmlRootElement(name = "ScheduleRequest")
public class ScheduleRequest
extends RequestMessage
implements Serializable, ToString
{
@XmlElement(name = "Farm", required = true)
protected Farm farm;
@XmlElement(name = "SchedulingPeriod", required = true)
protected SchedulingPeriod schedulingPeriod;
/**
* Obtiene el valor de la propiedad farm.
*
* @return
* possible object is
* {@link Farm }
*
*/
public Farm getFarm() {
return farm;
}
/**
* Define el valor de la propiedad farm.
*
* @param value
* allowed object is
* {@link Farm }
*
*/
public void setFarm(Farm value) {
this.farm = value;
}
public boolean isSetFarm() {
return (this.farm!= null);
}
/**
* Obtiene el valor de la propiedad schedulingPeriod.
*
* @return
* possible object is
* {@link SchedulingPeriod }
*
*/
public SchedulingPeriod getSchedulingPeriod() {
return schedulingPeriod;
}
/**
* Define el valor de la propiedad schedulingPeriod.
*
* @param value
* allowed object is
* {@link SchedulingPeriod }
*
*/
public void setSchedulingPeriod(SchedulingPeriod value) {
this.schedulingPeriod = value;
}
public boolean isSetSchedulingPeriod() {
return (this.schedulingPeriod!= 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);
{
Farm theFarm;
theFarm = this.getFarm();
strategy.appendField(locator, this, "farm", buffer, theFarm);
}
{
SchedulingPeriod theSchedulingPeriod;
theSchedulingPeriod = this.getSchedulingPeriod();
strategy.appendField(locator, this, "schedulingPeriod", buffer, theSchedulingPeriod);
}
return buffer;
}
public ScheduleRequest withFarm(Farm value) {
setFarm(value);
return this;
}
public ScheduleRequest withSchedulingPeriod(SchedulingPeriod value) {
setSchedulingPeriod(value);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy