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

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

There is a newer version: 0.17.5
Show 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.05.31 a las 10:59:26 PM CEST 
//


package eu.fispace.api.ag;

import java.io.Serializable;
import java.util.Calendar;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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;


/**
 * 

Clase Java para anonymous complex type. * *

El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase. * *

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Farm" type="{http://www.fispace.eu/domain/ag}FarmType"/>
 *         <element name="CropFieldID" type="{http://www.w3.org/2001/XMLSchema}ID"/>
 *         <element name="Greenhouse" type="{http://www.fispace.eu/domain/ag}GreenhouseType" minOccurs="0"/>
 *         <element name="TimestampOfSensorMeasurement" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "farm", "cropFieldID", "greenhouse", "timestampOfSensorMeasurement" }) @XmlRootElement(name = "GreenhouseAdvice") public class GreenhouseAdvice implements Serializable, ToString { @XmlElement(name = "Farm", required = true) protected FarmType farm; @XmlElement(name = "CropFieldID", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID @XmlSchemaType(name = "ID") protected String cropFieldID; @XmlElement(name = "Greenhouse") protected GreenhouseType greenhouse; @XmlElement(name = "TimestampOfSensorMeasurement", required = true, type = String.class) @XmlJavaTypeAdapter(Adapter1 .class) @XmlSchemaType(name = "dateTime") protected Calendar timestampOfSensorMeasurement; /** * Obtiene el valor de la propiedad farm. * * @return * possible object is * {@link FarmType } * */ public FarmType getFarm() { return farm; } /** * Define el valor de la propiedad farm. * * @param value * allowed object is * {@link FarmType } * */ public void setFarm(FarmType value) { this.farm = value; } public boolean isSetFarm() { return (this.farm!= null); } /** * Obtiene el valor de la propiedad cropFieldID. * * @return * possible object is * {@link String } * */ public String getCropFieldID() { return cropFieldID; } /** * Define el valor de la propiedad cropFieldID. * * @param value * allowed object is * {@link String } * */ public void setCropFieldID(String value) { this.cropFieldID = value; } public boolean isSetCropFieldID() { return (this.cropFieldID!= null); } /** * Obtiene el valor de la propiedad greenhouse. * * @return * possible object is * {@link GreenhouseType } * */ public GreenhouseType getGreenhouse() { return greenhouse; } /** * Define el valor de la propiedad greenhouse. * * @param value * allowed object is * {@link GreenhouseType } * */ public void setGreenhouse(GreenhouseType value) { this.greenhouse = value; } public boolean isSetGreenhouse() { return (this.greenhouse!= null); } /** * Obtiene el valor de la propiedad timestampOfSensorMeasurement. * * @return * possible object is * {@link String } * */ public Calendar getTimestampOfSensorMeasurement() { return timestampOfSensorMeasurement; } /** * Define el valor de la propiedad timestampOfSensorMeasurement. * * @param value * allowed object is * {@link String } * */ public void setTimestampOfSensorMeasurement(Calendar value) { this.timestampOfSensorMeasurement = value; } public boolean isSetTimestampOfSensorMeasurement() { return (this.timestampOfSensorMeasurement!= 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) { { FarmType theFarm; theFarm = this.getFarm(); strategy.appendField(locator, this, "farm", buffer, theFarm); } { String theCropFieldID; theCropFieldID = this.getCropFieldID(); strategy.appendField(locator, this, "cropFieldID", buffer, theCropFieldID); } { GreenhouseType theGreenhouse; theGreenhouse = this.getGreenhouse(); strategy.appendField(locator, this, "greenhouse", buffer, theGreenhouse); } { Calendar theTimestampOfSensorMeasurement; theTimestampOfSensorMeasurement = this.getTimestampOfSensorMeasurement(); strategy.appendField(locator, this, "timestampOfSensorMeasurement", buffer, theTimestampOfSensorMeasurement); } return buffer; } public GreenhouseAdvice withFarm(FarmType value) { setFarm(value); return this; } public GreenhouseAdvice withCropFieldID(String value) { setCropFieldID(value); return this; } public GreenhouseAdvice withGreenhouse(GreenhouseType value) { setGreenhouse(value); return this; } public GreenhouseAdvice withTimestampOfSensorMeasurement(Calendar value) { setTimestampOfSensorMeasurement(value); return this; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy