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

org.drmcrop.Product Maven / Gradle / Ivy

There is a newer version: 0.4
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2014.10.22 at 06:25:25 PM CEST 
//


package org.drmcrop;

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.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
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;


/**
 * Description
 * Product is what is used as input for agricultural production.
 * 
 * Example:
 * Kalkamonsalpeter
 * water
 * npk17-17-17
 * 
 * 

Java class for Product complex type. * *

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

 * <complexType name="Product">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="ProductID" type="{http://www.w3.org/2001/XMLSchema}ID"/>
 *         <element name="ProductCode" type="{http://www.drmCrop.org/schemas/DataTypes}DrmCropCodeType"/>
 *         <element name="ProductDesignator" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="ApplicationRateUnit" type="{http://www.drmCrop.org/schemas/DataTypes}RateUnitType"/>
 *         <element name="ProductForm" type="{http://www.drmCrop.org/schemas/Enumerations}ProductFormEnumeration"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Product", propOrder = { "productID", "productCode", "productDesignator", "applicationRateUnit", "productForm" }) @XmlSeeAlso({ PlantProtectionProduct.class }) public class Product implements ToString { @XmlElement(name = "ProductID", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID @XmlSchemaType(name = "ID") protected String productID; @XmlElement(name = "ProductCode", required = true) protected DrmCropCodeType productCode; @XmlElement(name = "ProductDesignator", required = true) protected String productDesignator; @XmlElement(name = "ApplicationRateUnit", required = true) protected RateUnitType applicationRateUnit; @XmlElement(name = "ProductForm", required = true) protected ProductFormEnumeration productForm; /** * Gets the value of the productID property. * * @return * possible object is * {@link String } * */ public String getProductID() { return productID; } /** * Sets the value of the productID property. * * @param value * allowed object is * {@link String } * */ public void setProductID(String value) { this.productID = value; } /** * Gets the value of the productCode property. * * @return * possible object is * {@link DrmCropCodeType } * */ public DrmCropCodeType getProductCode() { return productCode; } /** * Sets the value of the productCode property. * * @param value * allowed object is * {@link DrmCropCodeType } * */ public void setProductCode(DrmCropCodeType value) { this.productCode = value; } /** * Gets the value of the productDesignator property. * * @return * possible object is * {@link String } * */ public String getProductDesignator() { return productDesignator; } /** * Sets the value of the productDesignator property. * * @param value * allowed object is * {@link String } * */ public void setProductDesignator(String value) { this.productDesignator = value; } /** * Gets the value of the applicationRateUnit property. * * @return * possible object is * {@link RateUnitType } * */ public RateUnitType getApplicationRateUnit() { return applicationRateUnit; } /** * Sets the value of the applicationRateUnit property. * * @param value * allowed object is * {@link RateUnitType } * */ public void setApplicationRateUnit(RateUnitType value) { this.applicationRateUnit = value; } /** * Gets the value of the productForm property. * * @return * possible object is * {@link ProductFormEnumeration } * */ public ProductFormEnumeration getProductForm() { return productForm; } /** * Sets the value of the productForm property. * * @param value * allowed object is * {@link ProductFormEnumeration } * */ public void setProductForm(ProductFormEnumeration value) { this.productForm = value; } 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) { { String theProductID; theProductID = this.getProductID(); strategy.appendField(locator, this, "productID", buffer, theProductID); } { DrmCropCodeType theProductCode; theProductCode = this.getProductCode(); strategy.appendField(locator, this, "productCode", buffer, theProductCode); } { String theProductDesignator; theProductDesignator = this.getProductDesignator(); strategy.appendField(locator, this, "productDesignator", buffer, theProductDesignator); } { RateUnitType theApplicationRateUnit; theApplicationRateUnit = this.getApplicationRateUnit(); strategy.appendField(locator, this, "applicationRateUnit", buffer, theApplicationRateUnit); } { ProductFormEnumeration theProductForm; theProductForm = this.getProductForm(); strategy.appendField(locator, this, "productForm", buffer, theProductForm); } return buffer; } public Product withProductID(String value) { setProductID(value); return this; } public Product withProductCode(DrmCropCodeType value) { setProductCode(value); return this; } public Product withProductDesignator(String value) { setProductDesignator(value); return this; } public Product withApplicationRateUnit(RateUnitType value) { setApplicationRateUnit(value); return this; } public Product withProductForm(ProductFormEnumeration value) { setProductForm(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy