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;
 
 import java.util.List;
A set of precise and complete data elements that cannot be subdivided and that describe the physical location of a place.

Java class for StreetAddressType complex type.

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

 <complexType name="StreetAddressType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://www.opengis.net/xls}_StreetLocation" minOccurs="0"/>
         <element ref="{http://www.opengis.net/xls}Street" maxOccurs="unbounded"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "StreetAddressType", propOrder = {
     "streetLocation",
     "street"
 })
 public class StreetAddressType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElementRef(name = "_StreetLocation", namespace = "http://www.opengis.net/xls", type = JAXBElement.class)
     protected JAXBElement<? extends AbstractStreetLocatorTypestreetLocation;
     @XmlElement(name = "Street", required = true)
     protected List<StreetNameTypestreet;

    
Gets the value of the streetLocation property.

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

    
Sets the value of the streetLocation property.

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

    
Gets the value of the street 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 street property.

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

    getStreet().add(newItem);
 

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

    public List<StreetNameTypegetStreet() {
        if ( == null) {
             = new ArrayList<StreetNameType>();
        }
        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) {
        {
            JAXBElement<? extends AbstractStreetLocatorTypetheStreetLocation;
            theStreetLocation = this.getStreetLocation();
            strategy.appendField(locatorthis"streetLocation"buffertheStreetLocation);
        }
        {
            List<StreetNameTypetheStreet;
            theStreet = this.getStreet();
            strategy.appendField(locatorthis"street"buffertheStreet);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof StreetAddressType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final StreetAddressType that = ((StreetAddressTypeobject);
        {
            JAXBElement<? extends AbstractStreetLocatorTypelhsStreetLocation;
            lhsStreetLocation = this.getStreetLocation();
            JAXBElement<? extends AbstractStreetLocatorTyperhsStreetLocation;
            rhsStreetLocation = that.getStreetLocation();
            if (!strategy.equals(LocatorUtils.property(thisLocator"streetLocation"lhsStreetLocation), LocatorUtils.property(thatLocator"streetLocation"rhsStreetLocation), lhsStreetLocationrhsStreetLocation)) {
                return false;
            }
        }
        {
            List<StreetNameTypelhsStreet;
            lhsStreet = this.getStreet();
            List<StreetNameTyperhsStreet;
            rhsStreet = that.getStreet();
            if (!strategy.equals(LocatorUtils.property(thisLocator"street"lhsStreet), LocatorUtils.property(thatLocator"street"rhsStreet), lhsStreetrhsStreet)) {
                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 AbstractStreetLocatorTypetheStreetLocation;
            theStreetLocation = this.getStreetLocation();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"streetLocation"theStreetLocation), currentHashCodetheStreetLocation);
        }
        {
            List<StreetNameTypetheStreet;
            theStreet = this.getStreet();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"street"theStreet), currentHashCodetheStreet);
        }
        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 StreetAddressType) {
            final StreetAddressType copy = ((StreetAddressTypedraftCopy);
            if (this.!= null) {
                JAXBElement<? extends AbstractStreetLocatorTypesourceStreetLocation;
                sourceStreetLocation = this.getStreetLocation();
                @SuppressWarnings("unchecked")
                JAXBElement<? extends AbstractStreetLocatorTypecopyStreetLocation = ((JAXBElement<? extends AbstractStreetLocatorType> ) strategy.copy(LocatorUtils.property(locator"streetLocation"sourceStreetLocation), sourceStreetLocation));
                copy.setStreetLocation(copyStreetLocation);
            } else {
                copy.streetLocation = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<StreetNameTypesourceStreet;
                sourceStreet = this.getStreet();
                @SuppressWarnings("unchecked")
                List<StreetNameTypecopyStreet = ((List<StreetNameType> ) strategy.copy(LocatorUtils.property(locator"street"sourceStreet), sourceStreet));
                copy.street = null;
                List<StreetNameTypeuniqueStreetl = copy.getStreet();
                uniqueStreetl.addAll(copyStreet);
            } else {
                copy.street = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new StreetAddressType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof StreetAddressType) {
            final StreetAddressType target = this;
            final StreetAddressType leftObject = ((StreetAddressTypeleft);
            final StreetAddressType rightObject = ((StreetAddressTyperight);
            {
                JAXBElement<? extends AbstractStreetLocatorTypelhsStreetLocation;
                lhsStreetLocation = leftObject.getStreetLocation();
                JAXBElement<? extends AbstractStreetLocatorTyperhsStreetLocation;
                rhsStreetLocation = rightObject.getStreetLocation();
                target.setStreetLocation(((JAXBElement<? extends AbstractStreetLocatorType> ) strategy.merge(LocatorUtils.property(leftLocator"streetLocation"lhsStreetLocation), LocatorUtils.property(rightLocator"streetLocation"rhsStreetLocation), lhsStreetLocationrhsStreetLocation)));
            }
            {
                List<StreetNameTypelhsStreet;
                lhsStreet = leftObject.getStreet();
                List<StreetNameTyperhsStreet;
                rhsStreet = rightObject.getStreet();
                target.street = null;
                List<StreetNameTypeuniqueStreetl = target.getStreet();
                uniqueStreetl.addAll(((List<StreetNameType> ) strategy.merge(LocatorUtils.property(leftLocator"street"lhsStreet), LocatorUtils.property(rightLocator"street"rhsStreet), lhsStreetrhsStreet)));
            }
        }
    }
    public void setStreet(List<StreetNameTypevalue) {
        List<StreetNameTypedraftl = this.getStreet();
        draftl.addAll(value);
    }
New to GrepCode? Check out our FAQ X