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;
 
 import java.util.List;
Geocode Request.

Java class for GeocodeRequestType complex type.

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

 <complexType name="GeocodeRequestType">
   <complexContent>
     <extension base="{http://www.opengis.net/xls}AbstractRequestParametersType">
       <sequence>
         <element ref="{http://www.opengis.net/xls}Address" maxOccurs="unbounded"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "GeocodeRequestType", propOrder = {
     "address"
 })
 public class GeocodeRequestType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "Address", required = true)
     protected List<AddressTypeaddress;

    
Gets the value of the address property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the address property.

For example, to add a new item, do as follows:

    getAddress().add(newItem);
 

Objects of the following type(s) are allowed in the list

 
     public List<AddressTypegetAddress() {
         if ( == null) {
              = new ArrayList<AddressType>();
         }
         return this.;
     }
 
     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);
        {
            List<AddressTypetheAddress;
            theAddress = this.getAddress();
            strategy.appendField(locatorthis"address"buffertheAddress);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof GeocodeRequestType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final GeocodeRequestType that = ((GeocodeRequestTypeobject);
        {
            List<AddressTypelhsAddress;
            lhsAddress = this.getAddress();
            List<AddressTyperhsAddress;
            rhsAddress = that.getAddress();
            if (!strategy.equals(LocatorUtils.property(thisLocator"address"lhsAddress), LocatorUtils.property(thatLocator"address"rhsAddress), lhsAddressrhsAddress)) {
                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);
        {
            List<AddressTypetheAddress;
            theAddress = this.getAddress();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"address"theAddress), currentHashCodetheAddress);
        }
        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 GeocodeRequestType) {
            final GeocodeRequestType copy = ((GeocodeRequestTypedraftCopy);
            if ((this.!= null)&&(!this..isEmpty())) {
                List<AddressTypesourceAddress;
                sourceAddress = this.getAddress();
                @SuppressWarnings("unchecked")
                List<AddressTypecopyAddress = ((List<AddressType> ) strategy.copy(LocatorUtils.property(locator"address"sourceAddress), sourceAddress));
                copy.address = null;
                List<AddressTypeuniqueAddressl = copy.getAddress();
                uniqueAddressl.addAll(copyAddress);
            } else {
                copy.address = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new GeocodeRequestType();
    }
    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 GeocodeRequestType) {
            final GeocodeRequestType target = this;
            final GeocodeRequestType leftObject = ((GeocodeRequestTypeleft);
            final GeocodeRequestType rightObject = ((GeocodeRequestTyperight);
            {
                List<AddressTypelhsAddress;
                lhsAddress = leftObject.getAddress();
                List<AddressTyperhsAddress;
                rhsAddress = rightObject.getAddress();
                target.address = null;
                List<AddressTypeuniqueAddressl = target.getAddress();
                uniqueAddressl.addAll(((List<AddressType> ) strategy.merge(LocatorUtils.property(leftLocator"address"lhsAddress), LocatorUtils.property(rightLocator"address"rhsAddress), lhsAddressrhsAddress)));
            }
        }
    }
    public void setAddress(List<AddressTypevalue) {
        List<AddressTypedraftl = this.getAddress();
        draftl.addAll(value);
    }
New to GrepCode? Check out our FAQ X