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: 2010.09.03 at 10:11:56 AM MESZ 
  //
  
  
  package net.opengis.xls.v_1_1_0;
 
Defines the Determine Route request parameters.

Java class for DetermineRouteRequestType complex type.

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

 <complexType name="DetermineRouteRequestType">
   <complexContent>
     <extension base="{http://www.opengis.net/xls}AbstractRequestParametersType">
       <sequence>
         <choice>
           <element ref="{http://www.opengis.net/xls}RouteHandle"/>
           <element ref="{http://www.opengis.net/xls}RoutePlan"/>
         </choice>
         <element ref="{http://www.opengis.net/xls}RouteInstructionsRequest" minOccurs="0"/>
         <element ref="{http://www.opengis.net/xls}RouteGeometryRequest" minOccurs="0"/>
         <element ref="{http://www.opengis.net/xls}RouteMapRequest" minOccurs="0"/>
       </sequence>
       <attribute name="provideRouteHandle" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="distanceUnit" type="{http://www.opengis.net/xls}DistanceUnitType" default="M" />
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "DetermineRouteRequestType", propOrder = {
     "routeHandle",
     "routePlan",
     "routeInstructionsRequest",
     "routeGeometryRequest",
     "routeMapRequest"
 })
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "RouteHandle")
     protected RouteHandleType routeHandle;
     @XmlElement(name = "RoutePlan")
     protected RoutePlanType routePlan;
     @XmlElement(name = "RouteInstructionsRequest")
     @XmlElement(name = "RouteGeometryRequest")
     @XmlElement(name = "RouteMapRequest")
     protected RouteMapRequestType routeMapRequest;
     @XmlAttribute(name = "provideRouteHandle")
     protected Boolean provideRouteHandle;
     @XmlAttribute(name = "distanceUnit")
     protected DistanceUnitType distanceUnit;

    
Reference to a proviously determined route stored at the Route Determination Service server.

Returns:
possible object is
 
    public RouteHandleType getRouteHandle() {
        return ;
    }

    
Sets the value of the routeHandle property.

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

    
Gets the value of the routePlan property.

Returns:
possible object is
    public RoutePlanType getRoutePlan() {
        return ;
    }

    
Sets the value of the routePlan property.

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

    
Request parameters for turn-by-turn route directions and advisories formatted for presentation.

Returns:
possible object is
        return ;
    }

    
Sets the value of the routeInstructionsRequest property.

Parameters:
value allowed object is
        this. = value;
    }

    
Request parameters for route geometry.

Returns:
possible object is
        return ;
    }

    
Sets the value of the routeGeometryRequest property.

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

    
Gets the value of the routeMapRequest property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the routeMapRequest property.

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

    
Gets the value of the provideRouteHandle property.

Returns:
possible object is
    public boolean isProvideRouteHandle() {
        if ( == null) {
            return false;
        } else {
            return ;
        }
    }

    
Sets the value of the provideRouteHandle property.

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

    
Gets the value of the distanceUnit property.

Returns:
possible object is
    public DistanceUnitType getDistanceUnit() {
        if ( == null) {
            return .;
        } else {
            return ;
        }
    }

    
Sets the value of the distanceUnit property.

Parameters:
value allowed object is
    public void setDistanceUnit(DistanceUnitType 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);
        {
            RouteHandleType theRouteHandle;
            theRouteHandle = this.getRouteHandle();
            strategy.appendField(locatorthis"routeHandle"buffertheRouteHandle);
        }
        {
            RoutePlanType theRoutePlan;
            theRoutePlan = this.getRoutePlan();
            strategy.appendField(locatorthis"routePlan"buffertheRoutePlan);
        }
        {
            RouteInstructionsRequestType theRouteInstructionsRequest;
            theRouteInstructionsRequest = this.getRouteInstructionsRequest();
            strategy.appendField(locatorthis"routeInstructionsRequest"buffertheRouteInstructionsRequest);
        }
        {
            RouteGeometryRequestType theRouteGeometryRequest;
            theRouteGeometryRequest = this.getRouteGeometryRequest();
            strategy.appendField(locatorthis"routeGeometryRequest"buffertheRouteGeometryRequest);
        }
        {
            RouteMapRequestType theRouteMapRequest;
            theRouteMapRequest = this.getRouteMapRequest();
            strategy.appendField(locatorthis"routeMapRequest"buffertheRouteMapRequest);
        }
        {
            boolean theProvideRouteHandle;
            theProvideRouteHandle = this.isProvideRouteHandle();
            strategy.appendField(locatorthis"provideRouteHandle"buffertheProvideRouteHandle);
        }
        {
            DistanceUnitType theDistanceUnit;
            theDistanceUnit = this.getDistanceUnit();
            strategy.appendField(locatorthis"distanceUnit"buffertheDistanceUnit);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof DetermineRouteRequestType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final DetermineRouteRequestType that = ((DetermineRouteRequestTypeobject);
        {
            RouteHandleType lhsRouteHandle;
            lhsRouteHandle = this.getRouteHandle();
            RouteHandleType rhsRouteHandle;
            rhsRouteHandle = that.getRouteHandle();
            if (!strategy.equals(LocatorUtils.property(thisLocator"routeHandle"lhsRouteHandle), LocatorUtils.property(thatLocator"routeHandle"rhsRouteHandle), lhsRouteHandlerhsRouteHandle)) {
                return false;
            }
        }
        {
            RoutePlanType lhsRoutePlan;
            lhsRoutePlan = this.getRoutePlan();
            RoutePlanType rhsRoutePlan;
            rhsRoutePlan = that.getRoutePlan();
            if (!strategy.equals(LocatorUtils.property(thisLocator"routePlan"lhsRoutePlan), LocatorUtils.property(thatLocator"routePlan"rhsRoutePlan), lhsRoutePlanrhsRoutePlan)) {
                return false;
            }
        }
        {
            RouteInstructionsRequestType lhsRouteInstructionsRequest;
            lhsRouteInstructionsRequest = this.getRouteInstructionsRequest();
            RouteInstructionsRequestType rhsRouteInstructionsRequest;
            rhsRouteInstructionsRequest = that.getRouteInstructionsRequest();
            if (!strategy.equals(LocatorUtils.property(thisLocator"routeInstructionsRequest"lhsRouteInstructionsRequest), LocatorUtils.property(thatLocator"routeInstructionsRequest"rhsRouteInstructionsRequest), lhsRouteInstructionsRequestrhsRouteInstructionsRequest)) {
                return false;
            }
        }
        {
            RouteGeometryRequestType lhsRouteGeometryRequest;
            lhsRouteGeometryRequest = this.getRouteGeometryRequest();
            RouteGeometryRequestType rhsRouteGeometryRequest;
            rhsRouteGeometryRequest = that.getRouteGeometryRequest();
            if (!strategy.equals(LocatorUtils.property(thisLocator"routeGeometryRequest"lhsRouteGeometryRequest), LocatorUtils.property(thatLocator"routeGeometryRequest"rhsRouteGeometryRequest), lhsRouteGeometryRequestrhsRouteGeometryRequest)) {
                return false;
            }
        }
        {
            RouteMapRequestType lhsRouteMapRequest;
            lhsRouteMapRequest = this.getRouteMapRequest();
            RouteMapRequestType rhsRouteMapRequest;
            rhsRouteMapRequest = that.getRouteMapRequest();
            if (!strategy.equals(LocatorUtils.property(thisLocator"routeMapRequest"lhsRouteMapRequest), LocatorUtils.property(thatLocator"routeMapRequest"rhsRouteMapRequest), lhsRouteMapRequestrhsRouteMapRequest)) {
                return false;
            }
        }
        {
            boolean lhsProvideRouteHandle;
            lhsProvideRouteHandle = this.isProvideRouteHandle();
            boolean rhsProvideRouteHandle;
            rhsProvideRouteHandle = that.isProvideRouteHandle();
            if (!strategy.equals(LocatorUtils.property(thisLocator"provideRouteHandle"lhsProvideRouteHandle), LocatorUtils.property(thatLocator"provideRouteHandle"rhsProvideRouteHandle), lhsProvideRouteHandlerhsProvideRouteHandle)) {
                return false;
            }
        }
        {
            DistanceUnitType lhsDistanceUnit;
            lhsDistanceUnit = this.getDistanceUnit();
            DistanceUnitType rhsDistanceUnit;
            rhsDistanceUnit = that.getDistanceUnit();
            if (!strategy.equals(LocatorUtils.property(thisLocator"distanceUnit"lhsDistanceUnit), LocatorUtils.property(thatLocator"distanceUnit"rhsDistanceUnit), lhsDistanceUnitrhsDistanceUnit)) {
                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);
        {
            RouteHandleType theRouteHandle;
            theRouteHandle = this.getRouteHandle();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"routeHandle"theRouteHandle), currentHashCodetheRouteHandle);
        }
        {
            RoutePlanType theRoutePlan;
            theRoutePlan = this.getRoutePlan();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"routePlan"theRoutePlan), currentHashCodetheRoutePlan);
        }
        {
            RouteInstructionsRequestType theRouteInstructionsRequest;
            theRouteInstructionsRequest = this.getRouteInstructionsRequest();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"routeInstructionsRequest"theRouteInstructionsRequest), currentHashCodetheRouteInstructionsRequest);
        }
        {
            RouteGeometryRequestType theRouteGeometryRequest;
            theRouteGeometryRequest = this.getRouteGeometryRequest();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"routeGeometryRequest"theRouteGeometryRequest), currentHashCodetheRouteGeometryRequest);
        }
        {
            RouteMapRequestType theRouteMapRequest;
            theRouteMapRequest = this.getRouteMapRequest();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"routeMapRequest"theRouteMapRequest), currentHashCodetheRouteMapRequest);
        }
        {
            boolean theProvideRouteHandle;
            theProvideRouteHandle = this.isProvideRouteHandle();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"provideRouteHandle"theProvideRouteHandle), currentHashCodetheProvideRouteHandle);
        }
        {
            DistanceUnitType theDistanceUnit;
            theDistanceUnit = this.getDistanceUnit();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"distanceUnit"theDistanceUnit), currentHashCodetheDistanceUnit);
        }
        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 DetermineRouteRequestType) {
            final DetermineRouteRequestType copy = ((DetermineRouteRequestTypedraftCopy);
            if (this.!= null) {
                RouteHandleType sourceRouteHandle;
                sourceRouteHandle = this.getRouteHandle();
                RouteHandleType copyRouteHandle = ((RouteHandleTypestrategy.copy(LocatorUtils.property(locator"routeHandle"sourceRouteHandle), sourceRouteHandle));
                copy.setRouteHandle(copyRouteHandle);
            } else {
                copy.routeHandle = null;
            }
            if (this.!= null) {
                RoutePlanType sourceRoutePlan;
                sourceRoutePlan = this.getRoutePlan();
                RoutePlanType copyRoutePlan = ((RoutePlanTypestrategy.copy(LocatorUtils.property(locator"routePlan"sourceRoutePlan), sourceRoutePlan));
                copy.setRoutePlan(copyRoutePlan);
            } else {
                copy.routePlan = null;
            }
            if (this.!= null) {
                RouteInstructionsRequestType sourceRouteInstructionsRequest;
                sourceRouteInstructionsRequest = this.getRouteInstructionsRequest();
                RouteInstructionsRequestType copyRouteInstructionsRequest = ((RouteInstructionsRequestTypestrategy.copy(LocatorUtils.property(locator"routeInstructionsRequest"sourceRouteInstructionsRequest), sourceRouteInstructionsRequest));
                copy.setRouteInstructionsRequest(copyRouteInstructionsRequest);
            } else {
                copy.routeInstructionsRequest = null;
            }
            if (this.!= null) {
                RouteGeometryRequestType sourceRouteGeometryRequest;
                sourceRouteGeometryRequest = this.getRouteGeometryRequest();
                RouteGeometryRequestType copyRouteGeometryRequest = ((RouteGeometryRequestTypestrategy.copy(LocatorUtils.property(locator"routeGeometryRequest"sourceRouteGeometryRequest), sourceRouteGeometryRequest));
                copy.setRouteGeometryRequest(copyRouteGeometryRequest);
            } else {
                copy.routeGeometryRequest = null;
            }
            if (this.!= null) {
                RouteMapRequestType sourceRouteMapRequest;
                sourceRouteMapRequest = this.getRouteMapRequest();
                RouteMapRequestType copyRouteMapRequest = ((RouteMapRequestTypestrategy.copy(LocatorUtils.property(locator"routeMapRequest"sourceRouteMapRequest), sourceRouteMapRequest));
                copy.setRouteMapRequest(copyRouteMapRequest);
            } else {
                copy.routeMapRequest = null;
            }
            if (this.!= null) {
                boolean sourceProvideRouteHandle;
                sourceProvideRouteHandle = this.isProvideRouteHandle();
                boolean copyProvideRouteHandle = strategy.copy(LocatorUtils.property(locator"provideRouteHandle"sourceProvideRouteHandle), sourceProvideRouteHandle);
                copy.setProvideRouteHandle(copyProvideRouteHandle);
            } else {
                copy.provideRouteHandle = null;
            }
            if (this.!= null) {
                DistanceUnitType sourceDistanceUnit;
                sourceDistanceUnit = this.getDistanceUnit();
                DistanceUnitType copyDistanceUnit = ((DistanceUnitTypestrategy.copy(LocatorUtils.property(locator"distanceUnit"sourceDistanceUnit), sourceDistanceUnit));
                copy.setDistanceUnit(copyDistanceUnit);
            } else {
                copy.distanceUnit = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new DetermineRouteRequestType();
    }
    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 DetermineRouteRequestType) {
            final DetermineRouteRequestType target = this;
            final DetermineRouteRequestType leftObject = ((DetermineRouteRequestTypeleft);
            final DetermineRouteRequestType rightObject = ((DetermineRouteRequestTyperight);
            {
                RouteHandleType lhsRouteHandle;
                lhsRouteHandle = leftObject.getRouteHandle();
                RouteHandleType rhsRouteHandle;
                rhsRouteHandle = rightObject.getRouteHandle();
                target.setRouteHandle(((RouteHandleTypestrategy.merge(LocatorUtils.property(leftLocator"routeHandle"lhsRouteHandle), LocatorUtils.property(rightLocator"routeHandle"rhsRouteHandle), lhsRouteHandlerhsRouteHandle)));
            }
            {
                RoutePlanType lhsRoutePlan;
                lhsRoutePlan = leftObject.getRoutePlan();
                RoutePlanType rhsRoutePlan;
                rhsRoutePlan = rightObject.getRoutePlan();
                target.setRoutePlan(((RoutePlanTypestrategy.merge(LocatorUtils.property(leftLocator"routePlan"lhsRoutePlan), LocatorUtils.property(rightLocator"routePlan"rhsRoutePlan), lhsRoutePlanrhsRoutePlan)));
            }
            {
                RouteInstructionsRequestType lhsRouteInstructionsRequest;
                lhsRouteInstructionsRequest = leftObject.getRouteInstructionsRequest();
                RouteInstructionsRequestType rhsRouteInstructionsRequest;
                rhsRouteInstructionsRequest = rightObject.getRouteInstructionsRequest();
                target.setRouteInstructionsRequest(((RouteInstructionsRequestTypestrategy.merge(LocatorUtils.property(leftLocator"routeInstructionsRequest"lhsRouteInstructionsRequest), LocatorUtils.property(rightLocator"routeInstructionsRequest"rhsRouteInstructionsRequest), lhsRouteInstructionsRequestrhsRouteInstructionsRequest)));
            }
            {
                RouteGeometryRequestType lhsRouteGeometryRequest;
                lhsRouteGeometryRequest = leftObject.getRouteGeometryRequest();
                RouteGeometryRequestType rhsRouteGeometryRequest;
                rhsRouteGeometryRequest = rightObject.getRouteGeometryRequest();
                target.setRouteGeometryRequest(((RouteGeometryRequestTypestrategy.merge(LocatorUtils.property(leftLocator"routeGeometryRequest"lhsRouteGeometryRequest), LocatorUtils.property(rightLocator"routeGeometryRequest"rhsRouteGeometryRequest), lhsRouteGeometryRequestrhsRouteGeometryRequest)));
            }
            {
                RouteMapRequestType lhsRouteMapRequest;
                lhsRouteMapRequest = leftObject.getRouteMapRequest();
                RouteMapRequestType rhsRouteMapRequest;
                rhsRouteMapRequest = rightObject.getRouteMapRequest();
                target.setRouteMapRequest(((RouteMapRequestTypestrategy.merge(LocatorUtils.property(leftLocator"routeMapRequest"lhsRouteMapRequest), LocatorUtils.property(rightLocator"routeMapRequest"rhsRouteMapRequest), lhsRouteMapRequestrhsRouteMapRequest)));
            }
            {
                boolean lhsProvideRouteHandle;
                lhsProvideRouteHandle = leftObject.isProvideRouteHandle();
                boolean rhsProvideRouteHandle;
                rhsProvideRouteHandle = rightObject.isProvideRouteHandle();
                target.setProvideRouteHandle(((booleanstrategy.merge(LocatorUtils.property(leftLocator"provideRouteHandle"lhsProvideRouteHandle), LocatorUtils.property(rightLocator"provideRouteHandle"rhsProvideRouteHandle), lhsProvideRouteHandlerhsProvideRouteHandle)));
            }
            {
                DistanceUnitType lhsDistanceUnit;
                lhsDistanceUnit = leftObject.getDistanceUnit();
                DistanceUnitType rhsDistanceUnit;
                rhsDistanceUnit = rightObject.getDistanceUnit();
                target.setDistanceUnit(((DistanceUnitTypestrategy.merge(LocatorUtils.property(leftLocator"distanceUnit"lhsDistanceUnit), LocatorUtils.property(rightLocator"distanceUnit"rhsDistanceUnit), lhsDistanceUnitrhsDistanceUnit)));
            }
        }
    }
New to GrepCode? Check out our FAQ X