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 OverlayType complex type.

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

 <complexType name="OverlayType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <choice>
           <element ref="{http://www.opengis.net/xls}POI"/>
           <element ref="{http://www.opengis.net/xls}RouteGeometry"/>
           <element ref="{http://www.opengis.net/xls}Position"/>
           <element ref="{http://www.opengis.net/xls}Map"/>
         </choice>
         <element name="Style" type="{http://www.opengis.net/xls}StyleType" minOccurs="0"/>
       </sequence>
       <attribute name="zorder" type="{http://www.w3.org/2001/XMLSchema}integer" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "OverlayType", propOrder = {
     "poi",
     "routeGeometry",
     "position",
     "map",
     "style"
 })
 public class OverlayType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "POI")
     protected PointOfInterestType poi;
     @XmlElement(name = "RouteGeometry")
     protected RouteGeometryType routeGeometry;
     @XmlElement(name = "Position")
     protected PositionType position;
     @XmlElement(name = "Map")
     protected MapType map;
     @XmlElement(name = "Style")
     protected StyleType style;
     @XmlAttribute(name = "zorder")
     protected BigInteger zorder;

    
Gets the value of the poi property.

Returns:
possible object is
 
     public PointOfInterestType getPOI() {
         return ;
     }

    
Sets the value of the poi property.

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

    
Gets the value of the routeGeometry property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the routeGeometry property.

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

    
Gets the value of the position property.

Returns:
possible object is
    public PositionType getPosition() {
        return ;
    }

    
Sets the value of the position property.

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

    
Gets the value of the map property.

Returns:
possible object is
    public MapType getMap() {
        return ;
    }

    
Sets the value of the map property.

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

    
Gets the value of the style property.

Returns:
possible object is
    public StyleType getStyle() {
        return ;
    }

    
Sets the value of the style property.

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

    
Gets the value of the zorder property.

Returns:
possible object is
    public BigInteger getZorder() {
        return ;
    }

    
Sets the value of the zorder property.

Parameters:
value allowed object is
    public void setZorder(BigInteger 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) {
        {
            PointOfInterestType thePOI;
            thePOI = this.getPOI();
            strategy.appendField(locatorthis"poi"bufferthePOI);
        }
        {
            RouteGeometryType theRouteGeometry;
            theRouteGeometry = this.getRouteGeometry();
            strategy.appendField(locatorthis"routeGeometry"buffertheRouteGeometry);
        }
        {
            PositionType thePosition;
            thePosition = this.getPosition();
            strategy.appendField(locatorthis"position"bufferthePosition);
        }
        {
            MapType theMap;
            theMap = this.getMap();
            strategy.appendField(locatorthis"map"buffertheMap);
        }
        {
            StyleType theStyle;
            theStyle = this.getStyle();
            strategy.appendField(locatorthis"style"buffertheStyle);
        }
        {
            BigInteger theZorder;
            theZorder = this.getZorder();
            strategy.appendField(locatorthis"zorder"buffertheZorder);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof OverlayType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final OverlayType that = ((OverlayTypeobject);
        {
            PointOfInterestType lhsPOI;
            lhsPOI = this.getPOI();
            PointOfInterestType rhsPOI;
            rhsPOI = that.getPOI();
            if (!strategy.equals(LocatorUtils.property(thisLocator"poi"lhsPOI), LocatorUtils.property(thatLocator"poi"rhsPOI), lhsPOIrhsPOI)) {
                return false;
            }
        }
        {
            RouteGeometryType lhsRouteGeometry;
            lhsRouteGeometry = this.getRouteGeometry();
            RouteGeometryType rhsRouteGeometry;
            rhsRouteGeometry = that.getRouteGeometry();
            if (!strategy.equals(LocatorUtils.property(thisLocator"routeGeometry"lhsRouteGeometry), LocatorUtils.property(thatLocator"routeGeometry"rhsRouteGeometry), lhsRouteGeometryrhsRouteGeometry)) {
                return false;
            }
        }
        {
            PositionType lhsPosition;
            lhsPosition = this.getPosition();
            PositionType rhsPosition;
            rhsPosition = that.getPosition();
            if (!strategy.equals(LocatorUtils.property(thisLocator"position"lhsPosition), LocatorUtils.property(thatLocator"position"rhsPosition), lhsPositionrhsPosition)) {
                return false;
            }
        }
        {
            MapType lhsMap;
            lhsMap = this.getMap();
            MapType rhsMap;
            rhsMap = that.getMap();
            if (!strategy.equals(LocatorUtils.property(thisLocator"map"lhsMap), LocatorUtils.property(thatLocator"map"rhsMap), lhsMaprhsMap)) {
                return false;
            }
        }
        {
            StyleType lhsStyle;
            lhsStyle = this.getStyle();
            StyleType rhsStyle;
            rhsStyle = that.getStyle();
            if (!strategy.equals(LocatorUtils.property(thisLocator"style"lhsStyle), LocatorUtils.property(thatLocator"style"rhsStyle), lhsStylerhsStyle)) {
                return false;
            }
        }
        {
            BigInteger lhsZorder;
            lhsZorder = this.getZorder();
            BigInteger rhsZorder;
            rhsZorder = that.getZorder();
            if (!strategy.equals(LocatorUtils.property(thisLocator"zorder"lhsZorder), LocatorUtils.property(thatLocator"zorder"rhsZorder), lhsZorderrhsZorder)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            PointOfInterestType thePOI;
            thePOI = this.getPOI();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"poi"thePOI), currentHashCodethePOI);
        }
        {
            RouteGeometryType theRouteGeometry;
            theRouteGeometry = this.getRouteGeometry();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"routeGeometry"theRouteGeometry), currentHashCodetheRouteGeometry);
        }
        {
            PositionType thePosition;
            thePosition = this.getPosition();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"position"thePosition), currentHashCodethePosition);
        }
        {
            MapType theMap;
            theMap = this.getMap();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"map"theMap), currentHashCodetheMap);
        }
        {
            StyleType theStyle;
            theStyle = this.getStyle();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"style"theStyle), currentHashCodetheStyle);
        }
        {
            BigInteger theZorder;
            theZorder = this.getZorder();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"zorder"theZorder), currentHashCodetheZorder);
        }
        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);
        if (draftCopy instanceof OverlayType) {
            final OverlayType copy = ((OverlayTypedraftCopy);
            if (this.!= null) {
                PointOfInterestType sourcePOI;
                sourcePOI = this.getPOI();
                PointOfInterestType copyPOI = ((PointOfInterestTypestrategy.copy(LocatorUtils.property(locator"poi"sourcePOI), sourcePOI));
                copy.setPOI(copyPOI);
            } else {
                copy.poi = null;
            }
            if (this.!= null) {
                RouteGeometryType sourceRouteGeometry;
                sourceRouteGeometry = this.getRouteGeometry();
                RouteGeometryType copyRouteGeometry = ((RouteGeometryTypestrategy.copy(LocatorUtils.property(locator"routeGeometry"sourceRouteGeometry), sourceRouteGeometry));
                copy.setRouteGeometry(copyRouteGeometry);
            } else {
                copy.routeGeometry = null;
            }
            if (this.!= null) {
                PositionType sourcePosition;
                sourcePosition = this.getPosition();
                PositionType copyPosition = ((PositionTypestrategy.copy(LocatorUtils.property(locator"position"sourcePosition), sourcePosition));
                copy.setPosition(copyPosition);
            } else {
                copy.position = null;
            }
            if (this.!= null) {
                MapType sourceMap;
                sourceMap = this.getMap();
                MapType copyMap = ((MapTypestrategy.copy(LocatorUtils.property(locator"map"sourceMap), sourceMap));
                copy.setMap(copyMap);
            } else {
                copy.map = null;
            }
            if (this.!= null) {
                StyleType sourceStyle;
                sourceStyle = this.getStyle();
                StyleType copyStyle = ((StyleTypestrategy.copy(LocatorUtils.property(locator"style"sourceStyle), sourceStyle));
                copy.setStyle(copyStyle);
            } else {
                copy.style = null;
            }
            if (this.!= null) {
                BigInteger sourceZorder;
                sourceZorder = this.getZorder();
                BigInteger copyZorder = ((BigIntegerstrategy.copy(LocatorUtils.property(locator"zorder"sourceZorder), sourceZorder));
                copy.setZorder(copyZorder);
            } else {
                copy.zorder = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new OverlayType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof OverlayType) {
            final OverlayType target = this;
            final OverlayType leftObject = ((OverlayTypeleft);
            final OverlayType rightObject = ((OverlayTyperight);
            {
                PointOfInterestType lhsPOI;
                lhsPOI = leftObject.getPOI();
                PointOfInterestType rhsPOI;
                rhsPOI = rightObject.getPOI();
                target.setPOI(((PointOfInterestTypestrategy.merge(LocatorUtils.property(leftLocator"poi"lhsPOI), LocatorUtils.property(rightLocator"poi"rhsPOI), lhsPOIrhsPOI)));
            }
            {
                RouteGeometryType lhsRouteGeometry;
                lhsRouteGeometry = leftObject.getRouteGeometry();
                RouteGeometryType rhsRouteGeometry;
                rhsRouteGeometry = rightObject.getRouteGeometry();
                target.setRouteGeometry(((RouteGeometryTypestrategy.merge(LocatorUtils.property(leftLocator"routeGeometry"lhsRouteGeometry), LocatorUtils.property(rightLocator"routeGeometry"rhsRouteGeometry), lhsRouteGeometryrhsRouteGeometry)));
            }
            {
                PositionType lhsPosition;
                lhsPosition = leftObject.getPosition();
                PositionType rhsPosition;
                rhsPosition = rightObject.getPosition();
                target.setPosition(((PositionTypestrategy.merge(LocatorUtils.property(leftLocator"position"lhsPosition), LocatorUtils.property(rightLocator"position"rhsPosition), lhsPositionrhsPosition)));
            }
            {
                MapType lhsMap;
                lhsMap = leftObject.getMap();
                MapType rhsMap;
                rhsMap = rightObject.getMap();
                target.setMap(((MapTypestrategy.merge(LocatorUtils.property(leftLocator"map"lhsMap), LocatorUtils.property(rightLocator"map"rhsMap), lhsMaprhsMap)));
            }
            {
                StyleType lhsStyle;
                lhsStyle = leftObject.getStyle();
                StyleType rhsStyle;
                rhsStyle = rightObject.getStyle();
                target.setStyle(((StyleTypestrategy.merge(LocatorUtils.property(leftLocator"style"lhsStyle), LocatorUtils.property(rightLocator"style"rhsStyle), lhsStylerhsStyle)));
            }
            {
                BigInteger lhsZorder;
                lhsZorder = leftObject.getZorder();
                BigInteger rhsZorder;
                rhsZorder = rightObject.getZorder();
                target.setZorder(((BigIntegerstrategy.merge(LocatorUtils.property(leftLocator"zorder"lhsZorder), LocatorUtils.property(rightLocator"zorder"rhsZorder), lhsZorderrhsZorder)));
            }
        }
    }
New to GrepCode? Check out our FAQ X