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, v2.2.11 
  // 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: 2015.04.16 at 07:39:09 AM CEST 
  //
  
  
  package net.opengis.iso19139.gmd.v_20060504;
 
 import java.util.List;
Location of the responsible individual or organisation

Java class for CI_Address_Type complex type.

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

 <complexType name="CI_Address_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="deliveryPoint" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="city" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType" minOccurs="0"/>
         <element name="administrativeArea" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType" minOccurs="0"/>
         <element name="postalCode" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType" minOccurs="0"/>
         <element name="country" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType" minOccurs="0"/>
         <element name="electronicMailAddress" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CI_Address_Type", propOrder = {
     "deliveryPoint",
     "city",
     "administrativeArea",
     "postalCode",
     "country",
     "electronicMailAddress"
 })
 public class CIAddressType
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     protected CharacterStringPropertyType city;
     protected CharacterStringPropertyType country;
Gets the value of the deliveryPoint 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 deliveryPoint property.

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

    getDeliveryPoint().add(newItem);
 

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

        if ( == null) {
             = new ArrayList<CharacterStringPropertyType>();
        }
        return this.;
    }

    
Gets the value of the city property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the city property.

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

    
Gets the value of the administrativeArea property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the administrativeArea property.

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

    
Gets the value of the postalCode property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the postalCode property.

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

    
Gets the value of the country property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the country property.

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

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

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

    getElectronicMailAddress().add(newItem);
 

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

        if ( == null) {
        }
        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<CharacterStringPropertyTypetheDeliveryPoint;
            theDeliveryPoint = (((this.!= null)&&(!this..isEmpty()))?this.getDeliveryPoint():null);
            strategy.appendField(locatorthis"deliveryPoint"buffertheDeliveryPoint);
        }
        {
            CharacterStringPropertyType theCity;
            theCity = this.getCity();
            strategy.appendField(locatorthis"city"buffertheCity);
        }
        {
            CharacterStringPropertyType theAdministrativeArea;
            theAdministrativeArea = this.getAdministrativeArea();
            strategy.appendField(locatorthis"administrativeArea"buffertheAdministrativeArea);
        }
        {
            CharacterStringPropertyType thePostalCode;
            thePostalCode = this.getPostalCode();
            strategy.appendField(locatorthis"postalCode"bufferthePostalCode);
        }
        {
            CharacterStringPropertyType theCountry;
            theCountry = this.getCountry();
            strategy.appendField(locatorthis"country"buffertheCountry);
        }
        {
            List<CharacterStringPropertyTypetheElectronicMailAddress;
            theElectronicMailAddress = (((this.!= null)&&(!this..isEmpty()))?this.getElectronicMailAddress():null);
            strategy.appendField(locatorthis"electronicMailAddress"buffertheElectronicMailAddress);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof CIAddressType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final CIAddressType that = ((CIAddressTypeobject);
        {
            List<CharacterStringPropertyTypelhsDeliveryPoint;
            lhsDeliveryPoint = (((this.!= null)&&(!this..isEmpty()))?this.getDeliveryPoint():null);
            List<CharacterStringPropertyTyperhsDeliveryPoint;
            rhsDeliveryPoint = (((that.deliveryPoint!= null)&&(!that.deliveryPoint.isEmpty()))?that.getDeliveryPoint():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"deliveryPoint"lhsDeliveryPoint), LocatorUtils.property(thatLocator"deliveryPoint"rhsDeliveryPoint), lhsDeliveryPointrhsDeliveryPoint)) {
                return false;
            }
        }
        {
            CharacterStringPropertyType lhsCity;
            lhsCity = this.getCity();
            CharacterStringPropertyType rhsCity;
            rhsCity = that.getCity();
            if (!strategy.equals(LocatorUtils.property(thisLocator"city"lhsCity), LocatorUtils.property(thatLocator"city"rhsCity), lhsCityrhsCity)) {
                return false;
            }
        }
        {
            CharacterStringPropertyType lhsAdministrativeArea;
            lhsAdministrativeArea = this.getAdministrativeArea();
            CharacterStringPropertyType rhsAdministrativeArea;
            rhsAdministrativeArea = that.getAdministrativeArea();
            if (!strategy.equals(LocatorUtils.property(thisLocator"administrativeArea"lhsAdministrativeArea), LocatorUtils.property(thatLocator"administrativeArea"rhsAdministrativeArea), lhsAdministrativeArearhsAdministrativeArea)) {
                return false;
            }
        }
        {
            CharacterStringPropertyType lhsPostalCode;
            lhsPostalCode = this.getPostalCode();
            CharacterStringPropertyType rhsPostalCode;
            rhsPostalCode = that.getPostalCode();
            if (!strategy.equals(LocatorUtils.property(thisLocator"postalCode"lhsPostalCode), LocatorUtils.property(thatLocator"postalCode"rhsPostalCode), lhsPostalCoderhsPostalCode)) {
                return false;
            }
        }
        {
            CharacterStringPropertyType lhsCountry;
            lhsCountry = this.getCountry();
            CharacterStringPropertyType rhsCountry;
            rhsCountry = that.getCountry();
            if (!strategy.equals(LocatorUtils.property(thisLocator"country"lhsCountry), LocatorUtils.property(thatLocator"country"rhsCountry), lhsCountryrhsCountry)) {
                return false;
            }
        }
        {
            List<CharacterStringPropertyTypelhsElectronicMailAddress;
            lhsElectronicMailAddress = (((this.!= null)&&(!this..isEmpty()))?this.getElectronicMailAddress():null);
            List<CharacterStringPropertyTyperhsElectronicMailAddress;
            rhsElectronicMailAddress = (((that.electronicMailAddress!= null)&&(!that.electronicMailAddress.isEmpty()))?that.getElectronicMailAddress():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"electronicMailAddress"lhsElectronicMailAddress), LocatorUtils.property(thatLocator"electronicMailAddress"rhsElectronicMailAddress), lhsElectronicMailAddressrhsElectronicMailAddress)) {
                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<CharacterStringPropertyTypetheDeliveryPoint;
            theDeliveryPoint = (((this.!= null)&&(!this..isEmpty()))?this.getDeliveryPoint():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"deliveryPoint"theDeliveryPoint), currentHashCodetheDeliveryPoint);
        }
        {
            CharacterStringPropertyType theCity;
            theCity = this.getCity();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"city"theCity), currentHashCodetheCity);
        }
        {
            CharacterStringPropertyType theAdministrativeArea;
            theAdministrativeArea = this.getAdministrativeArea();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"administrativeArea"theAdministrativeArea), currentHashCodetheAdministrativeArea);
        }
        {
            CharacterStringPropertyType thePostalCode;
            thePostalCode = this.getPostalCode();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"postalCode"thePostalCode), currentHashCodethePostalCode);
        }
        {
            CharacterStringPropertyType theCountry;
            theCountry = this.getCountry();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"country"theCountry), currentHashCodetheCountry);
        }
        {
            List<CharacterStringPropertyTypetheElectronicMailAddress;
            theElectronicMailAddress = (((this.!= null)&&(!this..isEmpty()))?this.getElectronicMailAddress():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"electronicMailAddress"theElectronicMailAddress), currentHashCodetheElectronicMailAddress);
        }
        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 CIAddressType) {
            final CIAddressType copy = ((CIAddressTypedraftCopy);
            if ((this.!= null)&&(!this..isEmpty())) {
                List<CharacterStringPropertyTypesourceDeliveryPoint;
                sourceDeliveryPoint = (((this.!= null)&&(!this..isEmpty()))?this.getDeliveryPoint():null);
                @SuppressWarnings("unchecked")
                List<CharacterStringPropertyTypecopyDeliveryPoint = ((List<CharacterStringPropertyType> ) strategy.copy(LocatorUtils.property(locator"deliveryPoint"sourceDeliveryPoint), sourceDeliveryPoint));
                copy.deliveryPoint = null;
                if (copyDeliveryPoint!= null) {
                    List<CharacterStringPropertyTypeuniqueDeliveryPointl = copy.getDeliveryPoint();
                    uniqueDeliveryPointl.addAll(copyDeliveryPoint);
                }
            } else {
                copy.deliveryPoint = null;
            }
            if (this.!= null) {
                CharacterStringPropertyType sourceCity;
                sourceCity = this.getCity();
                CharacterStringPropertyType copyCity = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"city"sourceCity), sourceCity));
                copy.setCity(copyCity);
            } else {
                copy.city = null;
            }
            if (this.!= null) {
                CharacterStringPropertyType sourceAdministrativeArea;
                sourceAdministrativeArea = this.getAdministrativeArea();
                CharacterStringPropertyType copyAdministrativeArea = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"administrativeArea"sourceAdministrativeArea), sourceAdministrativeArea));
                copy.setAdministrativeArea(copyAdministrativeArea);
            } else {
                copy.administrativeArea = null;
            }
            if (this.!= null) {
                CharacterStringPropertyType sourcePostalCode;
                sourcePostalCode = this.getPostalCode();
                CharacterStringPropertyType copyPostalCode = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"postalCode"sourcePostalCode), sourcePostalCode));
                copy.setPostalCode(copyPostalCode);
            } else {
                copy.postalCode = null;
            }
            if (this.!= null) {
                CharacterStringPropertyType sourceCountry;
                sourceCountry = this.getCountry();
                CharacterStringPropertyType copyCountry = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"country"sourceCountry), sourceCountry));
                copy.setCountry(copyCountry);
            } else {
                copy.country = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<CharacterStringPropertyTypesourceElectronicMailAddress;
                sourceElectronicMailAddress = (((this.!= null)&&(!this..isEmpty()))?this.getElectronicMailAddress():null);
                @SuppressWarnings("unchecked")
                List<CharacterStringPropertyTypecopyElectronicMailAddress = ((List<CharacterStringPropertyType> ) strategy.copy(LocatorUtils.property(locator"electronicMailAddress"sourceElectronicMailAddress), sourceElectronicMailAddress));
                copy.electronicMailAddress = null;
                if (copyElectronicMailAddress!= null) {
                    List<CharacterStringPropertyTypeuniqueElectronicMailAddressl = copy.getElectronicMailAddress();
                    uniqueElectronicMailAddressl.addAll(copyElectronicMailAddress);
                }
            } else {
                copy.electronicMailAddress = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new CIAddressType();
    }
    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 CIAddressType) {
            final CIAddressType target = this;
            final CIAddressType leftObject = ((CIAddressTypeleft);
            final CIAddressType rightObject = ((CIAddressTyperight);
            {
                List<CharacterStringPropertyTypelhsDeliveryPoint;
                lhsDeliveryPoint = (((leftObject.deliveryPoint!= null)&&(!leftObject.deliveryPoint.isEmpty()))?leftObject.getDeliveryPoint():null);
                List<CharacterStringPropertyTyperhsDeliveryPoint;
                rhsDeliveryPoint = (((rightObject.deliveryPoint!= null)&&(!rightObject.deliveryPoint.isEmpty()))?rightObject.getDeliveryPoint():null);
                List<CharacterStringPropertyTypemergedDeliveryPoint = ((List<CharacterStringPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"deliveryPoint"lhsDeliveryPoint), LocatorUtils.property(rightLocator"deliveryPoint"rhsDeliveryPoint), lhsDeliveryPointrhsDeliveryPoint));
                target.deliveryPoint = null;
                if (mergedDeliveryPoint!= null) {
                    List<CharacterStringPropertyTypeuniqueDeliveryPointl = target.getDeliveryPoint();
                    uniqueDeliveryPointl.addAll(mergedDeliveryPoint);
                }
            }
            {
                CharacterStringPropertyType lhsCity;
                lhsCity = leftObject.getCity();
                CharacterStringPropertyType rhsCity;
                rhsCity = rightObject.getCity();
                CharacterStringPropertyType mergedCity = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"city"lhsCity), LocatorUtils.property(rightLocator"city"rhsCity), lhsCityrhsCity));
                target.setCity(mergedCity);
            }
            {
                CharacterStringPropertyType lhsAdministrativeArea;
                lhsAdministrativeArea = leftObject.getAdministrativeArea();
                CharacterStringPropertyType rhsAdministrativeArea;
                rhsAdministrativeArea = rightObject.getAdministrativeArea();
                CharacterStringPropertyType mergedAdministrativeArea = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"administrativeArea"lhsAdministrativeArea), LocatorUtils.property(rightLocator"administrativeArea"rhsAdministrativeArea), lhsAdministrativeArearhsAdministrativeArea));
                target.setAdministrativeArea(mergedAdministrativeArea);
            }
            {
                CharacterStringPropertyType lhsPostalCode;
                lhsPostalCode = leftObject.getPostalCode();
                CharacterStringPropertyType rhsPostalCode;
                rhsPostalCode = rightObject.getPostalCode();
                CharacterStringPropertyType mergedPostalCode = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"postalCode"lhsPostalCode), LocatorUtils.property(rightLocator"postalCode"rhsPostalCode), lhsPostalCoderhsPostalCode));
                target.setPostalCode(mergedPostalCode);
            }
            {
                CharacterStringPropertyType lhsCountry;
                lhsCountry = leftObject.getCountry();
                CharacterStringPropertyType rhsCountry;
                rhsCountry = rightObject.getCountry();
                CharacterStringPropertyType mergedCountry = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"country"lhsCountry), LocatorUtils.property(rightLocator"country"rhsCountry), lhsCountryrhsCountry));
                target.setCountry(mergedCountry);
            }
            {
                List<CharacterStringPropertyTypelhsElectronicMailAddress;
                lhsElectronicMailAddress = (((leftObject.electronicMailAddress!= null)&&(!leftObject.electronicMailAddress.isEmpty()))?leftObject.getElectronicMailAddress():null);
                List<CharacterStringPropertyTyperhsElectronicMailAddress;
                rhsElectronicMailAddress = (((rightObject.electronicMailAddress!= null)&&(!rightObject.electronicMailAddress.isEmpty()))?rightObject.getElectronicMailAddress():null);
                List<CharacterStringPropertyTypemergedElectronicMailAddress = ((List<CharacterStringPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"electronicMailAddress"lhsElectronicMailAddress), LocatorUtils.property(rightLocator"electronicMailAddress"rhsElectronicMailAddress), lhsElectronicMailAddressrhsElectronicMailAddress));
                target.electronicMailAddress = null;
                if (mergedElectronicMailAddress!= null) {
                    List<CharacterStringPropertyTypeuniqueElectronicMailAddressl = target.getElectronicMailAddress();
                    uniqueElectronicMailAddressl.addAll(mergedElectronicMailAddress);
                }
            }
        }
    }
    public void setDeliveryPoint(List<CharacterStringPropertyTypevalue) {
        this. = null;
        List<CharacterStringPropertyTypedraftl = this.getDeliveryPoint();
        draftl.addAll(value);
    }
        this. = null;
        List<CharacterStringPropertyTypedraftl = this.getElectronicMailAddress();
        draftl.addAll(value);
    }
        if (values!= null) {
            for (CharacterStringPropertyType valuevalues) {
                getDeliveryPoint().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getDeliveryPoint().addAll(values);
        }
        return this;
    }
        setCity(value);
        return this;
    }
        setAdministrativeArea(value);
        return this;
    }
        setPostalCode(value);
        return this;
    }
        setCountry(value);
        return this;
    }
        if (values!= null) {
            for (CharacterStringPropertyType valuevalues) {
                getElectronicMailAddress().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getElectronicMailAddress().addAll(values);
        }
        return this;
    }
        setDeliveryPoint(value);
        return this;
    }
        setElectronicMailAddress(value);
        return this;
    }
    @Override
    public CIAddressType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public CIAddressType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X