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.04.16 at 07:22:02 AM CEST 
  //
  
  
  package net.opengis.arml.v_2_0;
 

Java class for GeometryType complex type.

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

 <complexType name="GeometryType">
   <complexContent>
     <extension base="{http://www.opengis.net/arml/2.0}ARAnchorType">
       <choice>
         <element ref="{http://www.opengis.net/gml/3.2}Point"/>
         <element ref="{http://www.opengis.net/gml/3.2}LineString"/>
         <element ref="{http://www.opengis.net/gml/3.2}Polygon"/>
       </choice>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "GeometryType", propOrder = {
     "point",
     "lineString",
     "polygon"
 })
 public class GeometryType
     extends ARAnchorType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "Point", namespace = "http://www.opengis.net/gml/3.2")
     protected PointType point;
     @XmlElement(name = "LineString", namespace = "http://www.opengis.net/gml/3.2")
     protected LineStringType lineString;
     @XmlElement(name = "Polygon", namespace = "http://www.opengis.net/gml/3.2")
     protected PolygonType polygon;

    
Gets the value of the point property.

Returns:
possible object is
 
     public PointType getPoint() {
         return ;
     }

    
Sets the value of the point property.

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

    
Gets the value of the lineString property.

Returns:
possible object is
    public LineStringType getLineString() {
        return ;
    }

    
Sets the value of the lineString property.

Parameters:
value allowed object is
    public void setLineString(LineStringType 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;
    }
    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);
        {
            PointType thePoint;
            thePoint = this.getPoint();
            strategy.appendField(locatorthis"point"bufferthePoint);
        }
        {
            LineStringType theLineString;
            theLineString = this.getLineString();
            strategy.appendField(locatorthis"lineString"buffertheLineString);
        }
        {
            PolygonType thePolygon;
            thePolygon = this.getPolygon();
            strategy.appendField(locatorthis"polygon"bufferthePolygon);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof GeometryType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final GeometryType that = ((GeometryTypeobject);
        {
            PointType lhsPoint;
            lhsPoint = this.getPoint();
            PointType rhsPoint;
            rhsPoint = that.getPoint();
            if (!strategy.equals(LocatorUtils.property(thisLocator"point"lhsPoint), LocatorUtils.property(thatLocator"point"rhsPoint), lhsPointrhsPoint)) {
                return false;
            }
        }
        {
            LineStringType lhsLineString;
            lhsLineString = this.getLineString();
            LineStringType rhsLineString;
            rhsLineString = that.getLineString();
            if (!strategy.equals(LocatorUtils.property(thisLocator"lineString"lhsLineString), LocatorUtils.property(thatLocator"lineString"rhsLineString), lhsLineStringrhsLineString)) {
                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;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = super.hashCode(locatorstrategy);
        {
            PointType thePoint;
            thePoint = this.getPoint();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"point"thePoint), currentHashCodethePoint);
        }
        {
            LineStringType theLineString;
            theLineString = this.getLineString();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"lineString"theLineString), currentHashCodetheLineString);
        }
        {
            PolygonType thePolygon;
            thePolygon = this.getPolygon();
            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 GeometryType) {
            final GeometryType copy = ((GeometryTypedraftCopy);
            if (this.!= null) {
                PointType sourcePoint;
                sourcePoint = this.getPoint();
                PointType copyPoint = ((PointTypestrategy.copy(LocatorUtils.property(locator"point"sourcePoint), sourcePoint));
                copy.setPoint(copyPoint);
            } else {
                copy.point = null;
            }
            if (this.!= null) {
                LineStringType sourceLineString;
                sourceLineString = this.getLineString();
                LineStringType copyLineString = ((LineStringTypestrategy.copy(LocatorUtils.property(locator"lineString"sourceLineString), sourceLineString));
                copy.setLineString(copyLineString);
            } else {
                copy.lineString = 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;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new GeometryType();
    }
    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 GeometryType) {
            final GeometryType target = this;
            final GeometryType leftObject = ((GeometryTypeleft);
            final GeometryType rightObject = ((GeometryTyperight);
            {
                PointType lhsPoint;
                lhsPoint = leftObject.getPoint();
                PointType rhsPoint;
                rhsPoint = rightObject.getPoint();
                PointType mergedPoint = ((PointTypestrategy.merge(LocatorUtils.property(leftLocator"point"lhsPoint), LocatorUtils.property(rightLocator"point"rhsPoint), lhsPointrhsPoint));
                target.setPoint(mergedPoint);
            }
            {
                LineStringType lhsLineString;
                lhsLineString = leftObject.getLineString();
                LineStringType rhsLineString;
                rhsLineString = rightObject.getLineString();
                LineStringType mergedLineString = ((LineStringTypestrategy.merge(LocatorUtils.property(leftLocator"lineString"lhsLineString), LocatorUtils.property(rightLocator"lineString"rhsLineString), lhsLineStringrhsLineString));
                target.setLineString(mergedLineString);
            }
            {
                PolygonType lhsPolygon;
                lhsPolygon = leftObject.getPolygon();
                PolygonType rhsPolygon;
                rhsPolygon = rightObject.getPolygon();
                PolygonType mergedPolygon = ((PolygonTypestrategy.merge(LocatorUtils.property(leftLocator"polygon"lhsPolygon), LocatorUtils.property(rightLocator"polygon"rhsPolygon), lhsPolygonrhsPolygon));
                target.setPolygon(mergedPolygon);
            }
        }
    }
    public GeometryType withPoint(PointType value) {
        setPoint(value);
        return this;
    }
    public GeometryType withLineString(LineStringType value) {
        setLineString(value);
        return this;
    }
    public GeometryType withPolygon(PolygonType value) {
        setPolygon(value);
        return this;
    }
    @Override
    public GeometryType withAssets(ARAnchorType.Assets value) {
        setAssets(value);
        return this;
    }
    @Override
    public GeometryType withEnabled(Boolean value) {
        setEnabled(value);
        return this;
    }
    @Override
    public GeometryType withId(String value) {
        setId(value);
        return this;
    }
New to GrepCode? Check out our FAQ X