Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2015.03.28 at 10:20:34 AM CET 
  //
  
  
  package net.opengis.iso19139.gmd.v_20060504;
 
 import java.util.List;
Boundary enclosing the dataset expressed as the closed set of (x,y) coordinates of the polygon (last point replicates first point)

Java class for EX_BoundingPolygon_Type complex type.

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

 <complexType name="EX_BoundingPolygon_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gmd}AbstractEX_GeographicExtent_Type">
       <sequence>
         <element name="polygon" type="{http://www.isotc211.org/2005/gss}GM_Object_PropertyType" maxOccurs="unbounded"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "EX_BoundingPolygon_Type", propOrder = {
     "polygon"
 })
 public class EXBoundingPolygonType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected List<GMObjectPropertyTypepolygon;

    
Gets the value of the polygon 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 polygon property.

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

    getPolygon().add(newItem);
 

Objects of the following type(s) are allowed in the list

 
     public List<GMObjectPropertyTypegetPolygon() {
         if ( == null) {
              = new ArrayList<GMObjectPropertyType>();
         }
         return this.;
     }
    public String toString() {
        final ToStringStrategy strategy = .;
        final StringBuilder buffer = new StringBuilder();
        append(nullbufferstrategy);
        return buffer.toString();
    }
    public StringBuilder append(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
        strategy.appendStart(locatorthisbuffer);
        appendFields(locatorbufferstrategy);
        strategy.appendEnd(locatorthisbuffer);
        return buffer;
    }
    public StringBuilder appendFields(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
        super.appendFields(locatorbufferstrategy);
        {
            List<GMObjectPropertyTypethePolygon;
            thePolygon = (((this.!= null)&&(!this..isEmpty()))?this.getPolygon():null);
            strategy.appendField(locatorthis"polygon"bufferthePolygon);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof EXBoundingPolygonType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final EXBoundingPolygonType that = ((EXBoundingPolygonTypeobject);
        {
            List<GMObjectPropertyTypelhsPolygon;
            lhsPolygon = (((this.!= null)&&(!this..isEmpty()))?this.getPolygon():null);
            List<GMObjectPropertyTyperhsPolygon;
            rhsPolygon = (((that.polygon!= null)&&(!that.polygon.isEmpty()))?that.getPolygon():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"polygon"lhsPolygon), LocatorUtils.property(thatLocator"polygon"rhsPolygon), lhsPolygonrhsPolygon)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = super.hashCode(locatorstrategy);
        {
            List<GMObjectPropertyTypethePolygon;
            thePolygon = (((this.!= null)&&(!this..isEmpty()))?this.getPolygon():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"polygon"thePolygon), currentHashCodethePolygon);
        }
        return currentHashCode;
    }
    public int hashCode() {
        final HashCodeStrategy strategy = .;
        return this.hashCode(nullstrategy);
    }
    public Object clone() {
        return copyTo(createNewInstance());
    }
    public Object copyTo(Object target) {
        final CopyStrategy strategy = .;
        return copyTo(nulltargetstrategy);
    }
    public Object copyTo(ObjectLocator locatorObject targetCopyStrategy strategy) {
        final Object draftCopy = ((target == null)?createNewInstance():target);
        super.copyTo(locatordraftCopystrategy);
        if (draftCopy instanceof EXBoundingPolygonType) {
            final EXBoundingPolygonType copy = ((EXBoundingPolygonTypedraftCopy);
            if ((this.!= null)&&(!this..isEmpty())) {
                List<GMObjectPropertyTypesourcePolygon;
                sourcePolygon = (((this.!= null)&&(!this..isEmpty()))?this.getPolygon():null);
                @SuppressWarnings("unchecked")
                List<GMObjectPropertyTypecopyPolygon = ((List<GMObjectPropertyType> ) strategy.copy(LocatorUtils.property(locator"polygon"sourcePolygon), sourcePolygon));
                copy.polygon = null;
                if (copyPolygon!= null) {
                    List<GMObjectPropertyTypeuniquePolygonl = copy.getPolygon();
                    uniquePolygonl.addAll(copyPolygon);
                }
            } else {
                copy.polygon = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new EXBoundingPolygonType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        super.mergeFrom(leftLocatorrightLocatorleftrightstrategy);
        if (right instanceof EXBoundingPolygonType) {
            final EXBoundingPolygonType target = this;
            final EXBoundingPolygonType leftObject = ((EXBoundingPolygonTypeleft);
            final EXBoundingPolygonType rightObject = ((EXBoundingPolygonTyperight);
            {
                List<GMObjectPropertyTypelhsPolygon;
                lhsPolygon = (((leftObject.polygon!= null)&&(!leftObject.polygon.isEmpty()))?leftObject.getPolygon():null);
                List<GMObjectPropertyTyperhsPolygon;
                rhsPolygon = (((rightObject.polygon!= null)&&(!rightObject.polygon.isEmpty()))?rightObject.getPolygon():null);
                List<GMObjectPropertyTypemergedPolygon = ((List<GMObjectPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"polygon"lhsPolygon), LocatorUtils.property(rightLocator"polygon"rhsPolygon), lhsPolygonrhsPolygon));
                target.polygon = null;
                if (mergedPolygon!= null) {
                    List<GMObjectPropertyTypeuniquePolygonl = target.getPolygon();
                    uniquePolygonl.addAll(mergedPolygon);
                }
            }
        }
    }
    public void setPolygon(List<GMObjectPropertyTypevalue) {
        this. = null;
        List<GMObjectPropertyTypedraftl = this.getPolygon();
        draftl.addAll(value);
    }
        if (values!= null) {
            for (GMObjectPropertyType valuevalues) {
                getPolygon().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getPolygon().addAll(values);
        }
        return this;
    }
        setPolygon(value);
        return this;
    }
    @Override
        setExtentTypeCode(value);
        return this;
    }
    @Override
    public EXBoundingPolygonType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public EXBoundingPolygonType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X