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;
 

Java-Klasse für ReverseGeocodedLocationType complex type.

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

 <complexType name="ReverseGeocodedLocationType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://www.opengis.net/gml}Point"/>
         <element ref="{http://www.opengis.net/xls}Address"/>
         <element ref="{http://www.opengis.net/xls}SearchCentreDistance" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "ReverseGeocodedLocationType", propOrder = {
     "point",
     "address",
     "searchCentreDistance"
 })
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "Point", namespace = "http://www.opengis.net/gml", required = true)
     protected PointType point;
     @XmlElement(name = "Address", required = true)
     protected AddressType address;
     @XmlElement(name = "SearchCentreDistance")
     protected DistanceType searchCentreDistance;

    
Ruft den Wert der point-Eigenschaft ab.

Returns:
possible object is
 
     public PointType getPoint() {
         return ;
     }

    
Legt den Wert der point-Eigenschaft fest.

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

    
Ruft den Wert der address-Eigenschaft ab.

Returns:
possible object is
    public AddressType getAddress() {
        return ;
    }

    
Legt den Wert der address-Eigenschaft fest.

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

    
Ruft den Wert der searchCentreDistance-Eigenschaft ab.

Returns:
possible object is
        return ;
    }

    
Legt den Wert der searchCentreDistance-Eigenschaft fest.

Parameters:
value allowed object is
    public void setSearchCentreDistance(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) {
        {
            PointType thePoint;
            thePoint = this.getPoint();
            strategy.appendField(locatorthis"point"bufferthePoint);
        }
        {
            AddressType theAddress;
            theAddress = this.getAddress();
            strategy.appendField(locatorthis"address"buffertheAddress);
        }
        {
            DistanceType theSearchCentreDistance;
            theSearchCentreDistance = this.getSearchCentreDistance();
            strategy.appendField(locatorthis"searchCentreDistance"buffertheSearchCentreDistance);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof ReverseGeocodedLocationType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final ReverseGeocodedLocationType that = ((ReverseGeocodedLocationTypeobject);
        {
            PointType lhsPoint;
            lhsPoint = this.getPoint();
            PointType rhsPoint;
            rhsPoint = that.getPoint();
            if (!strategy.equals(LocatorUtils.property(thisLocator"point"lhsPoint), LocatorUtils.property(thatLocator"point"rhsPoint), lhsPointrhsPoint)) {
                return false;
            }
        }
        {
            AddressType lhsAddress;
            lhsAddress = this.getAddress();
            AddressType rhsAddress;
            rhsAddress = that.getAddress();
            if (!strategy.equals(LocatorUtils.property(thisLocator"address"lhsAddress), LocatorUtils.property(thatLocator"address"rhsAddress), lhsAddressrhsAddress)) {
                return false;
            }
        }
        {
            DistanceType lhsSearchCentreDistance;
            lhsSearchCentreDistance = this.getSearchCentreDistance();
            DistanceType rhsSearchCentreDistance;
            rhsSearchCentreDistance = that.getSearchCentreDistance();
            if (!strategy.equals(LocatorUtils.property(thisLocator"searchCentreDistance"lhsSearchCentreDistance), LocatorUtils.property(thatLocator"searchCentreDistance"rhsSearchCentreDistance), lhsSearchCentreDistancerhsSearchCentreDistance)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            PointType thePoint;
            thePoint = this.getPoint();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"point"thePoint), currentHashCodethePoint);
        }
        {
            AddressType theAddress;
            theAddress = this.getAddress();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"address"theAddress), currentHashCodetheAddress);
        }
        {
            DistanceType theSearchCentreDistance;
            theSearchCentreDistance = this.getSearchCentreDistance();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"searchCentreDistance"theSearchCentreDistance), currentHashCodetheSearchCentreDistance);
        }
        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 ReverseGeocodedLocationType) {
            final ReverseGeocodedLocationType copy = ((ReverseGeocodedLocationTypedraftCopy);
            if (this.!= null) {
                PointType sourcePoint;
                sourcePoint = this.getPoint();
                PointType copyPoint = ((PointTypestrategy.copy(LocatorUtils.property(locator"point"sourcePoint), sourcePoint));
                copy.setPoint(copyPoint);
            } else {
                copy.point = null;
            }
            if (this.!= null) {
                AddressType sourceAddress;
                sourceAddress = this.getAddress();
                AddressType copyAddress = ((AddressTypestrategy.copy(LocatorUtils.property(locator"address"sourceAddress), sourceAddress));
                copy.setAddress(copyAddress);
            } else {
                copy.address = null;
            }
            if (this.!= null) {
                DistanceType sourceSearchCentreDistance;
                sourceSearchCentreDistance = this.getSearchCentreDistance();
                DistanceType copySearchCentreDistance = ((DistanceTypestrategy.copy(LocatorUtils.property(locator"searchCentreDistance"sourceSearchCentreDistance), sourceSearchCentreDistance));
                copy.setSearchCentreDistance(copySearchCentreDistance);
            } else {
                copy.searchCentreDistance = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new ReverseGeocodedLocationType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof ReverseGeocodedLocationType) {
            final ReverseGeocodedLocationType target = this;
            final ReverseGeocodedLocationType leftObject = ((ReverseGeocodedLocationTypeleft);
            final ReverseGeocodedLocationType rightObject = ((ReverseGeocodedLocationTyperight);
            {
                PointType lhsPoint;
                lhsPoint = leftObject.getPoint();
                PointType rhsPoint;
                rhsPoint = rightObject.getPoint();
                target.setPoint(((PointTypestrategy.merge(LocatorUtils.property(leftLocator"point"lhsPoint), LocatorUtils.property(rightLocator"point"rhsPoint), lhsPointrhsPoint)));
            }
            {
                AddressType lhsAddress;
                lhsAddress = leftObject.getAddress();
                AddressType rhsAddress;
                rhsAddress = rightObject.getAddress();
                target.setAddress(((AddressTypestrategy.merge(LocatorUtils.property(leftLocator"address"lhsAddress), LocatorUtils.property(rightLocator"address"rhsAddress), lhsAddressrhsAddress)));
            }
            {
                DistanceType lhsSearchCentreDistance;
                lhsSearchCentreDistance = leftObject.getSearchCentreDistance();
                DistanceType rhsSearchCentreDistance;
                rhsSearchCentreDistance = rightObject.getSearchCentreDistance();
                target.setSearchCentreDistance(((DistanceTypestrategy.merge(LocatorUtils.property(leftLocator"searchCentreDistance"lhsSearchCentreDistance), LocatorUtils.property(rightLocator"searchCentreDistance"rhsSearchCentreDistance), lhsSearchCentreDistancerhsSearchCentreDistance)));
            }
        }
    }
New to GrepCode? Check out our FAQ X