eu.agrosense.api.drmcrop.PropertyZone Maven / Gradle / Ivy
//
// 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.07.06 at 10:13:00 AM CEST
//
package eu.agrosense.api.drmcrop;
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 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;
/**
* Definition.
* A PropertyZone defines a surface which has a uniform PropertyValue, or a range of PropertyValues defined by a minimum and a maximum value for that property zone. A PropertyZone is described by a MultiSurface. propertyZone is not restricted to the borders of a Field, CropField or ActivityField.
*
* Remark.
* PropertyZone uses one or more Polygon's to describe the MultiSurface with uniform properties.
*
* An example of a PropertyZone is a map of soil types which PropertyZones can extend the borders of a farm.
*
* Java class for PropertyZone complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="PropertyZone">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="PropertyZoneDesignator" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="ThirdpartyPropertyZoneId" type="{http://www.drmCrop.org/schemas/DataTypes}GlobalUniqueIdentifierType"/>
* <element name="PropertyZoneSurface" type="{http://www.opengis.net/gml/3.2}MultiSurface" minOccurs="0"/>
* <element name="CropField" type="{http://www.drmCrop.org/schemas/drmCrop}CropField" minOccurs="0"/>
* <element name="Field" type="{http://www.drmCrop.org/schemas/drmCrop}Field" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PropertyZone", propOrder = {
"propertyZoneDesignator",
"thirdpartyPropertyZoneId",
"propertyZoneSurface",
"cropField",
"field"
})
public class PropertyZone
implements ToString
{
@XmlElement(name = "PropertyZoneDesignator", required = true)
protected String propertyZoneDesignator;
@XmlElement(name = "ThirdpartyPropertyZoneId", required = true)
protected GlobalUniqueIdentifierType thirdpartyPropertyZoneId;
@XmlElement(name = "PropertyZoneSurface")
protected MultiSurface propertyZoneSurface;
@XmlElement(name = "CropField")
protected CropField cropField;
@XmlElement(name = "Field")
protected Field field;
/**
* Gets the value of the propertyZoneDesignator property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPropertyZoneDesignator() {
return propertyZoneDesignator;
}
/**
* Sets the value of the propertyZoneDesignator property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPropertyZoneDesignator(String value) {
this.propertyZoneDesignator = value;
}
/**
* Gets the value of the thirdpartyPropertyZoneId property.
*
* @return
* possible object is
* {@link GlobalUniqueIdentifierType }
*
*/
public GlobalUniqueIdentifierType getThirdpartyPropertyZoneId() {
return thirdpartyPropertyZoneId;
}
/**
* Sets the value of the thirdpartyPropertyZoneId property.
*
* @param value
* allowed object is
* {@link GlobalUniqueIdentifierType }
*
*/
public void setThirdpartyPropertyZoneId(GlobalUniqueIdentifierType value) {
this.thirdpartyPropertyZoneId = value;
}
/**
* Gets the value of the propertyZoneSurface property.
*
* @return
* possible object is
* {@link MultiSurface }
*
*/
public MultiSurface getPropertyZoneSurface() {
return propertyZoneSurface;
}
/**
* Sets the value of the propertyZoneSurface property.
*
* @param value
* allowed object is
* {@link MultiSurface }
*
*/
public void setPropertyZoneSurface(MultiSurface value) {
this.propertyZoneSurface = value;
}
/**
* Gets the value of the cropField property.
*
* @return
* possible object is
* {@link CropField }
*
*/
public CropField getCropField() {
return cropField;
}
/**
* Sets the value of the cropField property.
*
* @param value
* allowed object is
* {@link CropField }
*
*/
public void setCropField(CropField value) {
this.cropField = value;
}
/**
* Gets the value of the field property.
*
* @return
* possible object is
* {@link Field }
*
*/
public Field getField() {
return field;
}
/**
* Sets the value of the field property.
*
* @param value
* allowed object is
* {@link Field }
*
*/
public void setField(Field value) {
this.field = 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 thePropertyZoneDesignator;
thePropertyZoneDesignator = this.getPropertyZoneDesignator();
strategy.appendField(locator, this, "propertyZoneDesignator", buffer, thePropertyZoneDesignator);
}
{
GlobalUniqueIdentifierType theThirdpartyPropertyZoneId;
theThirdpartyPropertyZoneId = this.getThirdpartyPropertyZoneId();
strategy.appendField(locator, this, "thirdpartyPropertyZoneId", buffer, theThirdpartyPropertyZoneId);
}
{
MultiSurface thePropertyZoneSurface;
thePropertyZoneSurface = this.getPropertyZoneSurface();
strategy.appendField(locator, this, "propertyZoneSurface", buffer, thePropertyZoneSurface);
}
{
CropField theCropField;
theCropField = this.getCropField();
strategy.appendField(locator, this, "cropField", buffer, theCropField);
}
{
Field theField;
theField = this.getField();
strategy.appendField(locator, this, "field", buffer, theField);
}
return buffer;
}
public PropertyZone withPropertyZoneDesignator(String value) {
setPropertyZoneDesignator(value);
return this;
}
public PropertyZone withThirdpartyPropertyZoneId(GlobalUniqueIdentifierType value) {
setThirdpartyPropertyZoneId(value);
return this;
}
public PropertyZone withPropertyZoneSurface(MultiSurface value) {
setPropertyZoneSurface(value);
return this;
}
public PropertyZone withCropField(CropField value) {
setCropField(value);
return this;
}
public PropertyZone withField(Field value) {
setField(value);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy