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, vhudson-jaxb-ri-2.1-2 
  // 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: 2011.02.20 at 01:29:24 PM MEZ 
  //
  
  
  package net.opengis.xls.v_1_1_0;
 

Java class for AreaOfInterestType complex type.

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

 <complexType name="AreaOfInterestType">
   <complexContent>
     <extension base="{http://www.opengis.net/xls}AbstractDataType">
       <choice>
         <element ref="{http://www.opengis.net/gml}CircleByCenterPoint"/>
         <element ref="{http://www.opengis.net/gml}Polygon"/>
         <element ref="{http://www.opengis.net/gml}Envelope"/>
       </choice>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "AreaOfInterestType", propOrder = {
     "circleByCenterPoint",
     "polygon",
     "envelope"
 })
 public class AreaOfInterestType
     extends AbstractDataType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "CircleByCenterPoint", namespace = "http://www.opengis.net/gml")
     @XmlElement(name = "Polygon", namespace = "http://www.opengis.net/gml")
     protected PolygonType polygon;
     @XmlElementRef(name = "Envelope", namespace = "http://www.opengis.net/gml", type = JAXBElement.class)
     protected JAXBElement<EnvelopeTypeenvelope;

    
Gets the value of the circleByCenterPoint property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the circleByCenterPoint property.

Parameters:
value allowed object is
 
     public void setCircleByCenterPoint(CircleByCenterPointType value) {
         this. = value;
    }

    
Gets the value of the polygon property.

Returns:
possible object is
    public PolygonType getPolygon() {
        return ;
    }

    
Sets the value of the polygon property.

Parameters:
value allowed object is
    public void setPolygon(PolygonType value) {
        this. = value;
    }

    
Gets the value of the envelope property.

Returns:
possible object is <>
    public JAXBElement<EnvelopeTypegetEnvelope() {
        return ;
    }

    
Sets the value of the envelope property.

Parameters:
value allowed object is <>
    public void setEnvelope(JAXBElement<EnvelopeTypevalue) {
        this. = ((JAXBElement<EnvelopeType> ) value);
    }
    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);
        {
            CircleByCenterPointType theCircleByCenterPoint;
            theCircleByCenterPoint = this.getCircleByCenterPoint();
            strategy.appendField(locatorthis"circleByCenterPoint"buffertheCircleByCenterPoint);
        }
        {
            PolygonType thePolygon;
            thePolygon = this.getPolygon();
            strategy.appendField(locatorthis"polygon"bufferthePolygon);
        }
        {
            JAXBElement<EnvelopeTypetheEnvelope;
            theEnvelope = this.getEnvelope();
            strategy.appendField(locatorthis"envelope"buffertheEnvelope);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof AreaOfInterestType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final AreaOfInterestType that = ((AreaOfInterestTypeobject);
        {
            CircleByCenterPointType lhsCircleByCenterPoint;
            lhsCircleByCenterPoint = this.getCircleByCenterPoint();
            CircleByCenterPointType rhsCircleByCenterPoint;
            rhsCircleByCenterPoint = that.getCircleByCenterPoint();
            if (!strategy.equals(LocatorUtils.property(thisLocator"circleByCenterPoint"lhsCircleByCenterPoint), LocatorUtils.property(thatLocator"circleByCenterPoint"rhsCircleByCenterPoint), lhsCircleByCenterPointrhsCircleByCenterPoint)) {
                return false;
            }
        }
        {
            PolygonType lhsPolygon;
            lhsPolygon = this.getPolygon();
            PolygonType rhsPolygon;
            rhsPolygon = that.getPolygon();
            if (!strategy.equals(LocatorUtils.property(thisLocator"polygon"lhsPolygon), LocatorUtils.property(thatLocator"polygon"rhsPolygon), lhsPolygonrhsPolygon)) {
                return false;
            }
        }
        {
            JAXBElement<EnvelopeTypelhsEnvelope;
            lhsEnvelope = this.getEnvelope();
            JAXBElement<EnvelopeTyperhsEnvelope;
            rhsEnvelope = that.getEnvelope();
            if (!strategy.equals(LocatorUtils.property(thisLocator"envelope"lhsEnvelope), LocatorUtils.property(thatLocator"envelope"rhsEnvelope), lhsEnveloperhsEnvelope)) {
                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);
        {
            CircleByCenterPointType theCircleByCenterPoint;
            theCircleByCenterPoint = this.getCircleByCenterPoint();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"circleByCenterPoint"theCircleByCenterPoint), currentHashCodetheCircleByCenterPoint);
        }
        {
            PolygonType thePolygon;
            thePolygon = this.getPolygon();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"polygon"thePolygon), currentHashCodethePolygon);
        }
        {
            JAXBElement<EnvelopeTypetheEnvelope;
            theEnvelope = this.getEnvelope();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"envelope"theEnvelope), currentHashCodetheEnvelope);
        }
        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 AreaOfInterestType) {
            final AreaOfInterestType copy = ((AreaOfInterestTypedraftCopy);
            if (this.!= null) {
                CircleByCenterPointType sourceCircleByCenterPoint;
                sourceCircleByCenterPoint = this.getCircleByCenterPoint();
                CircleByCenterPointType copyCircleByCenterPoint = ((CircleByCenterPointTypestrategy.copy(LocatorUtils.property(locator"circleByCenterPoint"sourceCircleByCenterPoint), sourceCircleByCenterPoint));
                copy.setCircleByCenterPoint(copyCircleByCenterPoint);
            } else {
                copy.circleByCenterPoint = null;
            }
            if (this.!= null) {
                PolygonType sourcePolygon;
                sourcePolygon = this.getPolygon();
                PolygonType copyPolygon = ((PolygonTypestrategy.copy(LocatorUtils.property(locator"polygon"sourcePolygon), sourcePolygon));
                copy.setPolygon(copyPolygon);
            } else {
                copy.polygon = null;
            }
            if (this.!= null) {
                JAXBElement<EnvelopeTypesourceEnvelope;
                sourceEnvelope = this.getEnvelope();
                @SuppressWarnings("unchecked")
                JAXBElement<EnvelopeTypecopyEnvelope = ((JAXBElement<EnvelopeType> ) strategy.copy(LocatorUtils.property(locator"envelope"sourceEnvelope), sourceEnvelope));
                copy.setEnvelope(copyEnvelope);
            } else {
                copy.envelope = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new AreaOfInterestType();
    }
    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 AreaOfInterestType) {
            final AreaOfInterestType target = this;
            final AreaOfInterestType leftObject = ((AreaOfInterestTypeleft);
            final AreaOfInterestType rightObject = ((AreaOfInterestTyperight);
            {
                CircleByCenterPointType lhsCircleByCenterPoint;
                lhsCircleByCenterPoint = leftObject.getCircleByCenterPoint();
                CircleByCenterPointType rhsCircleByCenterPoint;
                rhsCircleByCenterPoint = rightObject.getCircleByCenterPoint();
                target.setCircleByCenterPoint(((CircleByCenterPointTypestrategy.merge(LocatorUtils.property(leftLocator"circleByCenterPoint"lhsCircleByCenterPoint), LocatorUtils.property(rightLocator"circleByCenterPoint"rhsCircleByCenterPoint), lhsCircleByCenterPointrhsCircleByCenterPoint)));
            }
            {
                PolygonType lhsPolygon;
                lhsPolygon = leftObject.getPolygon();
                PolygonType rhsPolygon;
                rhsPolygon = rightObject.getPolygon();
                target.setPolygon(((PolygonTypestrategy.merge(LocatorUtils.property(leftLocator"polygon"lhsPolygon), LocatorUtils.property(rightLocator"polygon"rhsPolygon), lhsPolygonrhsPolygon)));
            }
            {
                JAXBElement<EnvelopeTypelhsEnvelope;
                lhsEnvelope = leftObject.getEnvelope();
                JAXBElement<EnvelopeTyperhsEnvelope;
                rhsEnvelope = rightObject.getEnvelope();
                target.setEnvelope(((JAXBElement<EnvelopeType> ) strategy.merge(LocatorUtils.property(leftLocator"envelope"lhsEnvelope), LocatorUtils.property(rightLocator"envelope"rhsEnvelope), lhsEnveloperhsEnvelope)));
            }
        }
    }
New to GrepCode? Check out our FAQ X