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;
 
Abstract type which specifies a route's overall characteristics.

Java class for AbstractRouteSummaryType complex type.

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

 <complexType name="AbstractRouteSummaryType">
   <complexContent>
     <extension base="{http://www.opengis.net/xls}AbstractDataType">
       <sequence>
         <element name="TotalTime" type="{http://www.w3.org/2001/XMLSchema}duration"/>
         <element name="TotalDistance" type="{http://www.opengis.net/xls}DistanceType"/>
         <element ref="{http://www.opengis.net/xls}BoundingBox"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "AbstractRouteSummaryType", propOrder = {
     "totalTime",
     "totalDistance",
     "boundingBox"
 })
     RouteSummaryType.class
 })
 public abstract class AbstractRouteSummaryType
     extends AbstractDataType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "TotalTime", required = true)
     protected Duration totalTime;
     @XmlElement(name = "TotalDistance", required = true)
     protected DistanceType totalDistance;
     @XmlElement(name = "BoundingBox", required = true)
     protected EnvelopeType boundingBox;

    
Gets the value of the totalTime property.

Returns:
possible object is
 
     public Duration getTotalTime() {
         return ;
     }

    
Sets the value of the totalTime property.

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

    
Gets the value of the totalDistance property.

Returns:
possible object is
    public DistanceType getTotalDistance() {
        return ;
    }

    
Sets the value of the totalDistance property.

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

    
Rectangular area bounding the complete route.

Returns:
possible object is
    public EnvelopeType getBoundingBox() {
        return ;
    }

    
Sets the value of the boundingBox property.

Parameters:
value allowed object is
    public void setBoundingBox(EnvelopeType 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);
        {
            Duration theTotalTime;
            theTotalTime = this.getTotalTime();
            strategy.appendField(locatorthis"totalTime"buffertheTotalTime);
        }
        {
            DistanceType theTotalDistance;
            theTotalDistance = this.getTotalDistance();
            strategy.appendField(locatorthis"totalDistance"buffertheTotalDistance);
        }
        {
            EnvelopeType theBoundingBox;
            theBoundingBox = this.getBoundingBox();
            strategy.appendField(locatorthis"boundingBox"buffertheBoundingBox);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof AbstractRouteSummaryType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final AbstractRouteSummaryType that = ((AbstractRouteSummaryTypeobject);
        {
            Duration lhsTotalTime;
            lhsTotalTime = this.getTotalTime();
            Duration rhsTotalTime;
            rhsTotalTime = that.getTotalTime();
            if (!strategy.equals(LocatorUtils.property(thisLocator"totalTime"lhsTotalTime), LocatorUtils.property(thatLocator"totalTime"rhsTotalTime), lhsTotalTimerhsTotalTime)) {
                return false;
            }
        }
        {
            DistanceType lhsTotalDistance;
            lhsTotalDistance = this.getTotalDistance();
            DistanceType rhsTotalDistance;
            rhsTotalDistance = that.getTotalDistance();
            if (!strategy.equals(LocatorUtils.property(thisLocator"totalDistance"lhsTotalDistance), LocatorUtils.property(thatLocator"totalDistance"rhsTotalDistance), lhsTotalDistancerhsTotalDistance)) {
                return false;
            }
        }
        {
            EnvelopeType lhsBoundingBox;
            lhsBoundingBox = this.getBoundingBox();
            EnvelopeType rhsBoundingBox;
            rhsBoundingBox = that.getBoundingBox();
            if (!strategy.equals(LocatorUtils.property(thisLocator"boundingBox"lhsBoundingBox), LocatorUtils.property(thatLocator"boundingBox"rhsBoundingBox), lhsBoundingBoxrhsBoundingBox)) {
                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);
        {
            Duration theTotalTime;
            theTotalTime = this.getTotalTime();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"totalTime"theTotalTime), currentHashCodetheTotalTime);
        }
        {
            DistanceType theTotalDistance;
            theTotalDistance = this.getTotalDistance();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"totalDistance"theTotalDistance), currentHashCodetheTotalDistance);
        }
        {
            EnvelopeType theBoundingBox;
            theBoundingBox = this.getBoundingBox();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"boundingBox"theBoundingBox), currentHashCodetheBoundingBox);
        }
        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) {
        if (null == target) {
            throw new IllegalArgumentException("Target argument must not be null for abstract copyable classes.");
        }
        super.copyTo(locatortargetstrategy);
        if (target instanceof AbstractRouteSummaryType) {
            final AbstractRouteSummaryType copy = ((AbstractRouteSummaryTypetarget);
            if (this.!= null) {
                Duration sourceTotalTime;
                sourceTotalTime = this.getTotalTime();
                Duration copyTotalTime = ((Durationstrategy.copy(LocatorUtils.property(locator"totalTime"sourceTotalTime), sourceTotalTime));
                copy.setTotalTime(copyTotalTime);
            } else {
                copy.totalTime = null;
            }
            if (this.!= null) {
                DistanceType sourceTotalDistance;
                sourceTotalDistance = this.getTotalDistance();
                DistanceType copyTotalDistance = ((DistanceTypestrategy.copy(LocatorUtils.property(locator"totalDistance"sourceTotalDistance), sourceTotalDistance));
                copy.setTotalDistance(copyTotalDistance);
            } else {
                copy.totalDistance = null;
            }
            if (this.!= null) {
                EnvelopeType sourceBoundingBox;
                sourceBoundingBox = this.getBoundingBox();
                EnvelopeType copyBoundingBox = ((EnvelopeTypestrategy.copy(LocatorUtils.property(locator"boundingBox"sourceBoundingBox), sourceBoundingBox));
                copy.setBoundingBox(copyBoundingBox);
            } else {
                copy.boundingBox = null;
            }
        }
        return target;
    }
    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 AbstractRouteSummaryType) {
            final AbstractRouteSummaryType target = this;
            final AbstractRouteSummaryType leftObject = ((AbstractRouteSummaryTypeleft);
            final AbstractRouteSummaryType rightObject = ((AbstractRouteSummaryTyperight);
            {
                Duration lhsTotalTime;
                lhsTotalTime = leftObject.getTotalTime();
                Duration rhsTotalTime;
                rhsTotalTime = rightObject.getTotalTime();
                target.setTotalTime(((Durationstrategy.merge(LocatorUtils.property(leftLocator"totalTime"lhsTotalTime), LocatorUtils.property(rightLocator"totalTime"rhsTotalTime), lhsTotalTimerhsTotalTime)));
            }
            {
                DistanceType lhsTotalDistance;
                lhsTotalDistance = leftObject.getTotalDistance();
                DistanceType rhsTotalDistance;
                rhsTotalDistance = rightObject.getTotalDistance();
                target.setTotalDistance(((DistanceTypestrategy.merge(LocatorUtils.property(leftLocator"totalDistance"lhsTotalDistance), LocatorUtils.property(rightLocator"totalDistance"rhsTotalDistance), lhsTotalDistancerhsTotalDistance)));
            }
            {
                EnvelopeType lhsBoundingBox;
                lhsBoundingBox = leftObject.getBoundingBox();
                EnvelopeType rhsBoundingBox;
                rhsBoundingBox = rightObject.getBoundingBox();
                target.setBoundingBox(((EnvelopeTypestrategy.merge(LocatorUtils.property(leftLocator"boundingBox"lhsBoundingBox), LocatorUtils.property(rightLocator"boundingBox"rhsBoundingBox), lhsBoundingBoxrhsBoundingBox)));
            }
        }
    }
New to GrepCode? Check out our FAQ X