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 spatial filter which selects POIs located within a specified distance from a location.

Java-Klasse für WithinDistanceType complex type.

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

 <complexType name="WithinDistanceType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://www.opengis.net/xls}_Location"/>
         <element name="MinimumDistance" type="{http://www.opengis.net/xls}DistanceType" minOccurs="0"/>
         <element name="MaximumDistance" type="{http://www.opengis.net/xls}DistanceType" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "WithinDistanceType", propOrder = {
     "location",
     "minimumDistance",
     "maximumDistance"
 })
 public class WithinDistanceType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElementRef(name = "_Location", namespace = "http://www.opengis.net/xls", type = JAXBElement.class)
     protected JAXBElement<? extends AbstractLocationTypelocation;
     @XmlElement(name = "MinimumDistance")
     protected DistanceType minimumDistance;
     @XmlElement(name = "MaximumDistance")
     protected DistanceType maximumDistance;

    
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 minimumDistance-Eigenschaft ab.

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

    
Legt den Wert der minimumDistance-Eigenschaft fest.

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

    
Ruft den Wert der maximumDistance-Eigenschaft ab.

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

    
Legt den Wert der maximumDistance-Eigenschaft fest.

Parameters:
value allowed object is
    public void setMaximumDistance(DistanceType 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) {
        {
            JAXBElement<? extends AbstractLocationTypetheLocation;
            theLocation = this.getLocation();
            strategy.appendField(locatorthis"location"buffertheLocation);
        }
        {
            DistanceType theMinimumDistance;
            theMinimumDistance = this.getMinimumDistance();
            strategy.appendField(locatorthis"minimumDistance"buffertheMinimumDistance);
        }
        {
            DistanceType theMaximumDistance;
            theMaximumDistance = this.getMaximumDistance();
            strategy.appendField(locatorthis"maximumDistance"buffertheMaximumDistance);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof WithinDistanceType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final WithinDistanceType that = ((WithinDistanceTypeobject);
        {
            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;
            }
        }
        {
            DistanceType lhsMinimumDistance;
            lhsMinimumDistance = this.getMinimumDistance();
            DistanceType rhsMinimumDistance;
            rhsMinimumDistance = that.getMinimumDistance();
            if (!strategy.equals(LocatorUtils.property(thisLocator"minimumDistance"lhsMinimumDistance), LocatorUtils.property(thatLocator"minimumDistance"rhsMinimumDistance), lhsMinimumDistancerhsMinimumDistance)) {
                return false;
            }
        }
        {
            DistanceType lhsMaximumDistance;
            lhsMaximumDistance = this.getMaximumDistance();
            DistanceType rhsMaximumDistance;
            rhsMaximumDistance = that.getMaximumDistance();
            if (!strategy.equals(LocatorUtils.property(thisLocator"maximumDistance"lhsMaximumDistance), LocatorUtils.property(thatLocator"maximumDistance"rhsMaximumDistance), lhsMaximumDistancerhsMaximumDistance)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            JAXBElement<? extends AbstractLocationTypetheLocation;
            theLocation = this.getLocation();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"location"theLocation), currentHashCodetheLocation);
        }
        {
            DistanceType theMinimumDistance;
            theMinimumDistance = this.getMinimumDistance();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"minimumDistance"theMinimumDistance), currentHashCodetheMinimumDistance);
        }
        {
            DistanceType theMaximumDistance;
            theMaximumDistance = this.getMaximumDistance();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"maximumDistance"theMaximumDistance), currentHashCodetheMaximumDistance);
        }
        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 WithinDistanceType) {
            final WithinDistanceType copy = ((WithinDistanceTypedraftCopy);
            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) {
                DistanceType sourceMinimumDistance;
                sourceMinimumDistance = this.getMinimumDistance();
                DistanceType copyMinimumDistance = ((DistanceTypestrategy.copy(LocatorUtils.property(locator"minimumDistance"sourceMinimumDistance), sourceMinimumDistance));
                copy.setMinimumDistance(copyMinimumDistance);
            } else {
                copy.minimumDistance = null;
            }
            if (this.!= null) {
                DistanceType sourceMaximumDistance;
                sourceMaximumDistance = this.getMaximumDistance();
                DistanceType copyMaximumDistance = ((DistanceTypestrategy.copy(LocatorUtils.property(locator"maximumDistance"sourceMaximumDistance), sourceMaximumDistance));
                copy.setMaximumDistance(copyMaximumDistance);
            } else {
                copy.maximumDistance = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new WithinDistanceType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof WithinDistanceType) {
            final WithinDistanceType target = this;
            final WithinDistanceType leftObject = ((WithinDistanceTypeleft);
            final WithinDistanceType rightObject = ((WithinDistanceTyperight);
            {
                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)));
            }
            {
                DistanceType lhsMinimumDistance;
                lhsMinimumDistance = leftObject.getMinimumDistance();
                DistanceType rhsMinimumDistance;
                rhsMinimumDistance = rightObject.getMinimumDistance();
                target.setMinimumDistance(((DistanceTypestrategy.merge(LocatorUtils.property(leftLocator"minimumDistance"lhsMinimumDistance), LocatorUtils.property(rightLocator"minimumDistance"rhsMinimumDistance), lhsMinimumDistancerhsMinimumDistance)));
            }
            {
                DistanceType lhsMaximumDistance;
                lhsMaximumDistance = leftObject.getMaximumDistance();
                DistanceType rhsMaximumDistance;
                rhsMaximumDistance = rightObject.getMaximumDistance();
                target.setMaximumDistance(((DistanceTypestrategy.merge(LocatorUtils.property(leftLocator"maximumDistance"lhsMaximumDistance), LocatorUtils.property(rightLocator"maximumDistance"rhsMaximumDistance), lhsMaximumDistancerhsMaximumDistance)));
            }
        }
    }
New to GrepCode? Check out our FAQ X