/** * Create an instance of {@link AddressDetails } * */ public AddressDetails createAddressDetails() { return new AddressDetails(); }
lhsPostalServiceElements = leftObject.getPostalServiceElements(); AddressDetails.PostalServiceElements rhsPostalServiceElements; rhsPostalServiceElements = rightObject.getPostalServiceElements(); target.setPostalServiceElements(((AddressDetails.PostalServiceElements) strategy.merge(LocatorUtils.property(leftLocator, "postalServiceElements", lhsPostalServiceElements), LocatorUtils.property(rightLocator, "postalServiceElements", rhsPostalServiceElements), lhsPostalServiceElements, rhsPostalServiceElements))); lhsAddress = leftObject.getAddress(); AddressDetails.Address rhsAddress; rhsAddress = rightObject.getAddress(); target.setAddress(((AddressDetails.Address) strategy.merge(LocatorUtils.property(leftLocator, "address", lhsAddress), LocatorUtils.property(rightLocator, "address", rhsAddress), lhsAddress, rhsAddress))); lhsAddressLines = leftObject.getAddressLines(); AddressLinesType rhsAddressLines; rhsAddressLines = rightObject.getAddressLines(); target.setAddressLines(((AddressLinesType) strategy.merge(LocatorUtils.property(leftLocator, "addressLines", lhsAddressLines), LocatorUtils.property(rightLocator, "addressLines", rhsAddressLines), lhsAddressLines, rhsAddressLines))); lhsCountry = leftObject.getCountry(); AddressDetails.Country rhsCountry; rhsCountry = rightObject.getCountry(); target.setCountry(((AddressDetails.Country) strategy.merge(LocatorUtils.property(leftLocator, "country", lhsCountry), LocatorUtils.property(rightLocator, "country", rhsCountry), lhsCountry, rhsCountry))); lhsAdministrativeArea = leftObject.getAdministrativeArea(); AdministrativeArea rhsAdministrativeArea; rhsAdministrativeArea = rightObject.getAdministrativeArea(); target.setAdministrativeArea(((AdministrativeArea) strategy.merge(LocatorUtils.property(leftLocator, "administrativeArea", lhsAdministrativeArea), LocatorUtils.property(rightLocator, "administrativeArea", rhsAdministrativeArea), lhsAdministrativeArea, rhsAdministrativeArea))); lhsLocality = leftObject.getLocality(); Locality rhsLocality; rhsLocality = rightObject.getLocality(); target.setLocality(((Locality) strategy.merge(LocatorUtils.property(leftLocator, "locality", lhsLocality), LocatorUtils.property(rightLocator, "locality", rhsLocality), lhsLocality, rhsLocality)));
if (src.isSetAddress()) dest.setAddress(unmarshalAddress(src.getAddress())); if (src.isSetAddressDetailsKey()) dest.setAddressDetailsKey(src.getAddressDetailsKey()); if (src.isSetAddressLines()) dest.setAddressLines(unmarshalAddressLines(src.getAddressLines())); if (src.isSetAddressType()) dest.setAddressType(src.getAddressType()); if (src.isSetAdministrativeArea()) dest.setAdministrativeArea(unmarshalAdministrativeArea(src.getAdministrativeArea())); if (src.isSetCode()) dest.setCode(src.getCode()); if (src.isSetCountry()) dest.setCountry(unmarshalCountry(src.getCountry())); if (src.isSetCurrentStatus()) dest.setCurrentStatus(src.getCurrentStatus()); if (src.isSetLocality()) dest.setLocality(unmarshalLocality(src.getLocality())); if (src.isSetPostalServiceElements()) dest.setPostalServiceElements(unmarshalPostalServiceElements(src.getPostalServiceElements()));
thePostalServiceElements = this.getPostalServiceElements(); strategy.appendField(locator, this, "postalServiceElements", buffer, thePostalServiceElements); theAddress = this.getAddress(); strategy.appendField(locator, this, "address", buffer, theAddress); theAddressLines = this.getAddressLines(); strategy.appendField(locator, this, "addressLines", buffer, theAddressLines); theCountry = this.getCountry(); strategy.appendField(locator, this, "country", buffer, theCountry); theAdministrativeArea = this.getAdministrativeArea(); strategy.appendField(locator, this, "administrativeArea", buffer, theAdministrativeArea); theLocality = this.getLocality(); strategy.appendField(locator, this, "locality", buffer, theLocality); theThoroughfare = this.getThoroughfare(); strategy.appendField(locator, this, "thoroughfare", buffer, theThoroughfare); theAny = this.getAny(); strategy.appendField(locator, this, "any", buffer, theAny); theAddressType = this.getAddressType(); strategy.appendField(locator, this, "addressType", buffer, theAddressType); theCurrentStatus = this.getCurrentStatus(); strategy.appendField(locator, this, "currentStatus", buffer, theCurrentStatus);
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof AddressDetails) { final AddressDetails copy = ((AddressDetails) draftCopy); if (this.postalServiceElements!= null) { AddressDetails.PostalServiceElements sourcePostalServiceElements; sourcePostalServiceElements = this.getPostalServiceElements(); AddressDetails.PostalServiceElements copyPostalServiceElements = ((AddressDetails.PostalServiceElements) strategy.copy(LocatorUtils.property(locator, "postalServiceElements", sourcePostalServiceElements), sourcePostalServiceElements)); copy.setPostalServiceElements(copyPostalServiceElements); } else { copy.postalServiceElements = null; sourceAddress = this.getAddress(); AddressDetails.Address copyAddress = ((AddressDetails.Address) strategy.copy(LocatorUtils.property(locator, "address", sourceAddress), sourceAddress)); copy.setAddress(copyAddress); } else { copy.address = null; sourceAddressLines = this.getAddressLines(); AddressLinesType copyAddressLines = ((AddressLinesType) strategy.copy(LocatorUtils.property(locator, "addressLines", sourceAddressLines), sourceAddressLines)); copy.setAddressLines(copyAddressLines); } else { copy.addressLines = null; sourceCountry = this.getCountry(); AddressDetails.Country copyCountry = ((AddressDetails.Country) strategy.copy(LocatorUtils.property(locator, "country", sourceCountry), sourceCountry)); copy.setCountry(copyCountry); } else { copy.country = null;
lhsPostalServiceElements = this.getPostalServiceElements(); AddressDetails.PostalServiceElements rhsPostalServiceElements; rhsPostalServiceElements = that.getPostalServiceElements(); if (!strategy.equals(LocatorUtils.property(thisLocator, "postalServiceElements", lhsPostalServiceElements), LocatorUtils.property(thatLocator, "postalServiceElements", rhsPostalServiceElements), lhsPostalServiceElements, rhsPostalServiceElements)) { return false; lhsAddress = this.getAddress(); AddressDetails.Address rhsAddress; rhsAddress = that.getAddress(); if (!strategy.equals(LocatorUtils.property(thisLocator, "address", lhsAddress), LocatorUtils.property(thatLocator, "address", rhsAddress), lhsAddress, rhsAddress)) { return false; lhsAddressLines = this.getAddressLines(); AddressLinesType rhsAddressLines; rhsAddressLines = that.getAddressLines(); if (!strategy.equals(LocatorUtils.property(thisLocator, "addressLines", lhsAddressLines), LocatorUtils.property(thatLocator, "addressLines", rhsAddressLines), lhsAddressLines, rhsAddressLines)) { return false; lhsCountry = this.getCountry(); AddressDetails.Country rhsCountry; rhsCountry = that.getCountry(); if (!strategy.equals(LocatorUtils.property(thisLocator, "country", lhsCountry), LocatorUtils.property(thatLocator, "country", rhsCountry), lhsCountry, rhsCountry)) { return false; lhsAdministrativeArea = this.getAdministrativeArea(); AdministrativeArea rhsAdministrativeArea; rhsAdministrativeArea = that.getAdministrativeArea(); if (!strategy.equals(LocatorUtils.property(thisLocator, "administrativeArea", lhsAdministrativeArea), LocatorUtils.property(thatLocator, "administrativeArea", rhsAdministrativeArea), lhsAdministrativeArea, rhsAdministrativeArea)) { return false;
thePostalServiceElements = this.getPostalServiceElements(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "postalServiceElements", thePostalServiceElements), currentHashCode, thePostalServiceElements); theAddress = this.getAddress(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "address", theAddress), currentHashCode, theAddress); theAddressLines = this.getAddressLines(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "addressLines", theAddressLines), currentHashCode, theAddressLines); theCountry = this.getCountry(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "country", theCountry), currentHashCode, theCountry); theAdministrativeArea = this.getAdministrativeArea(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "administrativeArea", theAdministrativeArea), currentHashCode, theAdministrativeArea); theLocality = this.getLocality(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "locality", theLocality), currentHashCode, theLocality); theThoroughfare = this.getThoroughfare(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "thoroughfare", theThoroughfare), currentHashCode, theThoroughfare); theAny = this.getAny(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "any", theAny), currentHashCode, theAny); theAddressType = this.getAddressType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "addressType", theAddressType), currentHashCode, theAddressType); theCurrentStatus = this.getCurrentStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "currentStatus", theCurrentStatus), currentHashCode, theCurrentStatus);
/** * Create an instance of {@link AddressDetails } * */ public AddressDetails createAddressDetails() { return new AddressDetails(); }
public Object createNewInstance() { return new AddressDetails(); }