Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 generiert 
  // Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. 
  // Generiert: 2013.01.31 um 01:29:25 AM CET 
  //
  
  
  package net.opengis.xls.v_1_1_0;
 
Defines a location to be visited along a route.

Java-Klasse für WayPointType complex type.

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.

 <complexType name="WayPointType">
   <complexContent>
     <extension base="{http://www.opengis.net/xls}AbstractWayPointType">
       <sequence>
         <element ref="{http://www.opengis.net/xls}_Location"/>
         <element ref="{http://www.opengis.net/xls}GeocodeMatchCode" minOccurs="0"/>
       </sequence>
       <attribute name="stop" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "WayPointType", propOrder = {
     "location",
     "geocodeMatchCode"
 })
 public class WayPointType
     extends AbstractWayPointType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElementRef(name = "_Location", namespace = "http://www.opengis.net/xls", type = JAXBElement.class)
     protected JAXBElement<? extends AbstractLocationTypelocation;
     @XmlElement(name = "GeocodeMatchCode")
     protected GeocodingQOSType geocodeMatchCode;
     @XmlAttribute(name = "stop")
     protected Boolean stop;

    
Ruft den Wert der location-Eigenschaft ab.

Returns:
possible object is <> <> <> <> <> <>
 
     public JAXBElement<? extends AbstractLocationTypegetLocation() {
         return ;
     }

    
Legt den Wert der location-Eigenschaft fest.

Parameters:
value allowed object is <> <> <> <> <> <>
    public void setLocation(JAXBElement<? extends AbstractLocationTypevalue) {
        this. = value;
    }

    
Ruft den Wert der geocodeMatchCode-Eigenschaft ab.

Returns:
possible object is
        return ;
    }

    
Legt den Wert der geocodeMatchCode-Eigenschaft fest.

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

    
Ruft den Wert der stop-Eigenschaft ab.

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

    
Legt den Wert der stop-Eigenschaft fest.

Parameters:
value allowed object is
    public void setStop(Boolean 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);
        {
            JAXBElement<? extends AbstractLocationTypetheLocation;
            theLocation = this.getLocation();
            strategy.appendField(locatorthis"location"buffertheLocation);
        }
        {
            GeocodingQOSType theGeocodeMatchCode;
            theGeocodeMatchCode = this.getGeocodeMatchCode();
            strategy.appendField(locatorthis"geocodeMatchCode"buffertheGeocodeMatchCode);
        }
        {
            boolean theStop;
            theStop = this.isStop();
            strategy.appendField(locatorthis"stop"buffertheStop);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof WayPointType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final WayPointType that = ((WayPointTypeobject);
        {
            JAXBElement<? extends AbstractLocationTypelhsLocation;
            lhsLocation = this.getLocation();
            JAXBElement<? extends AbstractLocationTyperhsLocation;
            rhsLocation = that.getLocation();
            if (!strategy.equals(LocatorUtils.property(thisLocator"location"lhsLocation), LocatorUtils.property(thatLocator"location"rhsLocation), lhsLocationrhsLocation)) {
                return false;
            }
        }
        {
            GeocodingQOSType lhsGeocodeMatchCode;
            lhsGeocodeMatchCode = this.getGeocodeMatchCode();
            GeocodingQOSType rhsGeocodeMatchCode;
            rhsGeocodeMatchCode = that.getGeocodeMatchCode();
            if (!strategy.equals(LocatorUtils.property(thisLocator"geocodeMatchCode"lhsGeocodeMatchCode), LocatorUtils.property(thatLocator"geocodeMatchCode"rhsGeocodeMatchCode), lhsGeocodeMatchCoderhsGeocodeMatchCode)) {
                return false;
            }
        }
        {
            boolean lhsStop;
            lhsStop = this.isStop();
            boolean rhsStop;
            rhsStop = that.isStop();
            if (!strategy.equals(LocatorUtils.property(thisLocator"stop"lhsStop), LocatorUtils.property(thatLocator"stop"rhsStop), lhsStoprhsStop)) {
                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);
        {
            JAXBElement<? extends AbstractLocationTypetheLocation;
            theLocation = this.getLocation();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"location"theLocation), currentHashCodetheLocation);
        }
        {
            GeocodingQOSType theGeocodeMatchCode;
            theGeocodeMatchCode = this.getGeocodeMatchCode();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"geocodeMatchCode"theGeocodeMatchCode), currentHashCodetheGeocodeMatchCode);
        }
        {
            boolean theStop;
            theStop = this.isStop();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"stop"theStop), currentHashCodetheStop);
        }
        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 WayPointType) {
            final WayPointType copy = ((WayPointTypedraftCopy);
            if (this.!= null) {
                JAXBElement<? extends AbstractLocationTypesourceLocation;
                sourceLocation = this.getLocation();
                @SuppressWarnings("unchecked")
                JAXBElement<? extends AbstractLocationTypecopyLocation = ((JAXBElement<? extends AbstractLocationType> ) strategy.copy(LocatorUtils.property(locator"location"sourceLocation), sourceLocation));
                copy.setLocation(copyLocation);
            } else {
                copy.location = null;
            }
            if (this.!= null) {
                GeocodingQOSType sourceGeocodeMatchCode;
                sourceGeocodeMatchCode = this.getGeocodeMatchCode();
                GeocodingQOSType copyGeocodeMatchCode = ((GeocodingQOSTypestrategy.copy(LocatorUtils.property(locator"geocodeMatchCode"sourceGeocodeMatchCode), sourceGeocodeMatchCode));
                copy.setGeocodeMatchCode(copyGeocodeMatchCode);
            } else {
                copy.geocodeMatchCode = null;
            }
            if (this.!= null) {
                boolean sourceStop;
                sourceStop = this.isStop();
                boolean copyStop = strategy.copy(LocatorUtils.property(locator"stop"sourceStop), sourceStop);
                copy.setStop(copyStop);
            } else {
                copy.stop = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new WayPointType();
    }
    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 WayPointType) {
            final WayPointType target = this;
            final WayPointType leftObject = ((WayPointTypeleft);
            final WayPointType rightObject = ((WayPointTyperight);
            {
                JAXBElement<? extends AbstractLocationTypelhsLocation;
                lhsLocation = leftObject.getLocation();
                JAXBElement<? extends AbstractLocationTyperhsLocation;
                rhsLocation = rightObject.getLocation();
                target.setLocation(((JAXBElement<? extends AbstractLocationType> ) strategy.merge(LocatorUtils.property(leftLocator"location"lhsLocation), LocatorUtils.property(rightLocator"location"rhsLocation), lhsLocationrhsLocation)));
            }
            {
                GeocodingQOSType lhsGeocodeMatchCode;
                lhsGeocodeMatchCode = leftObject.getGeocodeMatchCode();
                GeocodingQOSType rhsGeocodeMatchCode;
                rhsGeocodeMatchCode = rightObject.getGeocodeMatchCode();
                target.setGeocodeMatchCode(((GeocodingQOSTypestrategy.merge(LocatorUtils.property(leftLocator"geocodeMatchCode"lhsGeocodeMatchCode), LocatorUtils.property(rightLocator"geocodeMatchCode"rhsGeocodeMatchCode), lhsGeocodeMatchCoderhsGeocodeMatchCode)));
            }
            {
                boolean lhsStop;
                lhsStop = leftObject.isStop();
                boolean rhsStop;
                rhsStop = rightObject.isStop();
                target.setStop(((booleanstrategy.merge(LocatorUtils.property(leftLocator"stop"lhsStop), LocatorUtils.property(rightLocator"stop"rhsStop), lhsStoprhsStop)));
            }
        }
    }
New to GrepCode? Check out our FAQ X