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

eu.agrosense.api.drmcrop.Polygon 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 java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSeeAlso;
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;


/**
 * 

Java class for Polygon complex type. * *

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

 * <complexType name="Polygon">
 *   <complexContent>
 *     <extension base="{http://www.opengis.net/gml/3.2}AbstractSurface">
 *       <sequence>
 *         <element ref="{http://www.opengis.net/gml/3.2}exterior" minOccurs="0"/>
 *         <element ref="{http://www.opengis.net/gml/3.2}interior" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Polygon", namespace = "http://www.opengis.net/gml/3.2", propOrder = { "exterior", "interior" }) @XmlSeeAlso({ FieldBorderType.class }) public class Polygon extends AbstractSurface implements ToString { @XmlElement(namespace = "http://www.opengis.net/gml/3.2") protected AbstractRingPropertyType exterior; @XmlElement(namespace = "http://www.opengis.net/gml/3.2") protected List interior; /** * Gets the value of the exterior property. * * @return * possible object is * {@link AbstractRingPropertyType } * */ public AbstractRingPropertyType getExterior() { return exterior; } /** * Sets the value of the exterior property. * * @param value * allowed object is * {@link AbstractRingPropertyType } * */ public void setExterior(AbstractRingPropertyType value) { this.exterior = value; } /** * Gets the value of the interior property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the interior property. * *

* For example, to add a new item, do as follows: *

     *    getInterior().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link AbstractRingPropertyType } * * */ public List getInterior() { if (interior == null) { interior = new ArrayList(); } return this.interior; } 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); { AbstractRingPropertyType theExterior; theExterior = this.getExterior(); strategy.appendField(locator, this, "exterior", buffer, theExterior); } { List theInterior; theInterior = (((this.interior!= null)&&(!this.interior.isEmpty()))?this.getInterior():null); strategy.appendField(locator, this, "interior", buffer, theInterior); } return buffer; } public Polygon withExterior(AbstractRingPropertyType value) { setExterior(value); return this; } public Polygon withInterior(AbstractRingPropertyType... values) { if (values!= null) { for (AbstractRingPropertyType value: values) { getInterior().add(value); } } return this; } public Polygon withInterior(Collection values) { if (values!= null) { getInterior().addAll(values); } return this; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy