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;
 
Defines the geometry of a route.

Java class for RouteGeometryType complex type.

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

 <complexType name="RouteGeometryType">
   <complexContent>
     <extension base="{http://www.opengis.net/xls}AbstractDataType">
       <sequence>
         <element ref="{http://www.opengis.net/gml}LineString"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "RouteGeometryType", propOrder = {
     "lineString"
 })
 public class RouteGeometryType
     extends AbstractDataType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "LineString", namespace = "http://www.opengis.net/gml", required = true)
     protected LineStringType lineString;

    
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;
     }
 
     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);
        {
            LineStringType theLineString;
            theLineString = this.getLineString();
            strategy.appendField(locatorthis"lineString"buffertheLineString);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof RouteGeometryType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final RouteGeometryType that = ((RouteGeometryTypeobject);
        {
            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;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = super.hashCode(locatorstrategy);
        {
            LineStringType theLineString;
            theLineString = this.getLineString();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"lineString"theLineString), currentHashCodetheLineString);
        }
        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 RouteGeometryType) {
            final RouteGeometryType copy = ((RouteGeometryTypedraftCopy);
            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;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new RouteGeometryType();
    }
    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 RouteGeometryType) {
            final RouteGeometryType target = this;
            final RouteGeometryType leftObject = ((RouteGeometryTypeleft);
            final RouteGeometryType rightObject = ((RouteGeometryTyperight);
            {
                LineStringType lhsLineString;
                lhsLineString = leftObject.getLineString();
                LineStringType rhsLineString;
                rhsLineString = rightObject.getLineString();
                target.setLineString(((LineStringTypestrategy.merge(LocatorUtils.property(leftLocator"lineString"lhsLineString), LocatorUtils.property(rightLocator"lineString"rhsLineString), lhsLineStringrhsLineString)));
            }
        }
    }
New to GrepCode? Check out our FAQ X