public void setAddressLine(List<AddressLine> value) { List<AddressLine> draftl = this.getAddressLine(); draftl.addAll(value); }
public void setCountryName(List<CountryName> value) { List<CountryName> draftl = this.getCountryName(); draftl.addAll(value); }
public void setCountryNameCode(List<AddressDetails.Country.CountryNameCode> value) { List<AddressDetails.Country.CountryNameCode> draftl = this.getCountryNameCode(); draftl.addAll(value); }
lhsAddressLine = this.getAddressLine(); List<AddressLine> rhsAddressLine; rhsAddressLine = that.getAddressLine(); if (!strategy.equals(LocatorUtils.property(thisLocator, "addressLine", lhsAddressLine), LocatorUtils.property(thatLocator, "addressLine", rhsAddressLine), lhsAddressLine, rhsAddressLine)) { return false; lhsCountryNameCode = this.getCountryNameCode(); List<AddressDetails.Country.CountryNameCode> rhsCountryNameCode; rhsCountryNameCode = that.getCountryNameCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "countryNameCode", lhsCountryNameCode), LocatorUtils.property(thatLocator, "countryNameCode", rhsCountryNameCode), lhsCountryNameCode, rhsCountryNameCode)) { return false; lhsCountryName = this.getCountryName(); List<CountryName> rhsCountryName; rhsCountryName = that.getCountryName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "countryName", lhsCountryName), LocatorUtils.property(thatLocator, "countryName", rhsCountryName), lhsCountryName, rhsCountryName)) { 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; lhsLocality = this.getLocality(); Locality rhsLocality; rhsLocality = that.getLocality(); if (!strategy.equals(LocatorUtils.property(thisLocator, "locality", lhsLocality), LocatorUtils.property(thatLocator, "locality", rhsLocality), lhsLocality, rhsLocality)) { return false;
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof AddressDetails.Country) { final AddressDetails.Country copy = ((AddressDetails.Country) draftCopy); if ((this.addressLine!= null)&&(!this.addressLine.isEmpty())) { List<AddressLine> sourceAddressLine; sourceAddressLine = this.getAddressLine(); @SuppressWarnings("unchecked") List<AddressLine> copyAddressLine = ((List<AddressLine> ) strategy.copy(LocatorUtils.property(locator, "addressLine", sourceAddressLine), sourceAddressLine)); copy.addressLine = null; List<AddressLine> uniqueAddressLinel = copy.getAddressLine(); uniqueAddressLinel.addAll(copyAddressLine); } else { sourceCountryNameCode = this.getCountryNameCode(); @SuppressWarnings("unchecked") List<AddressDetails.Country.CountryNameCode> copyCountryNameCode = ((List<AddressDetails.Country.CountryNameCode> ) strategy.copy(LocatorUtils.property(locator, "countryNameCode", sourceCountryNameCode), sourceCountryNameCode)); copy.countryNameCode = null; List<AddressDetails.Country.CountryNameCode> uniqueCountryNameCodel = copy.getCountryNameCode(); uniqueCountryNameCodel.addAll(copyCountryNameCode); } else { sourceCountryName = this.getCountryName(); @SuppressWarnings("unchecked") List<CountryName> copyCountryName = ((List<CountryName> ) strategy.copy(LocatorUtils.property(locator, "countryName", sourceCountryName), sourceCountryName)); copy.countryName = null; List<CountryName> uniqueCountryNamel = copy.getCountryName(); uniqueCountryNamel.addAll(copyCountryName); } else {
lhsAddressLine = leftObject.getAddressLine(); List<AddressLine> rhsAddressLine; rhsAddressLine = rightObject.getAddressLine(); target.addressLine = null; List<AddressLine> uniqueAddressLinel = target.getAddressLine(); uniqueAddressLinel.addAll(((List<AddressLine> ) strategy.merge(LocatorUtils.property(leftLocator, "addressLine", lhsAddressLine), LocatorUtils.property(rightLocator, "addressLine", rhsAddressLine), lhsAddressLine, rhsAddressLine))); lhsCountryNameCode = leftObject.getCountryNameCode(); List<AddressDetails.Country.CountryNameCode> rhsCountryNameCode; rhsCountryNameCode = rightObject.getCountryNameCode(); target.countryNameCode = null; List<AddressDetails.Country.CountryNameCode> uniqueCountryNameCodel = target.getCountryNameCode(); uniqueCountryNameCodel.addAll(((List<AddressDetails.Country.CountryNameCode> ) strategy.merge(LocatorUtils.property(leftLocator, "countryNameCode", lhsCountryNameCode), LocatorUtils.property(rightLocator, "countryNameCode", rhsCountryNameCode), lhsCountryNameCode, rhsCountryNameCode))); lhsCountryName = leftObject.getCountryName(); List<CountryName> rhsCountryName; rhsCountryName = rightObject.getCountryName(); target.countryName = null; List<CountryName> uniqueCountryNamel = target.getCountryName(); uniqueCountryNamel.addAll(((List<CountryName> ) strategy.merge(LocatorUtils.property(leftLocator, "countryName", lhsCountryName), LocatorUtils.property(rightLocator, "countryName", rhsCountryName), lhsCountryName, rhsCountryName))); 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();
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { theAddressLine = this.getAddressLine(); strategy.appendField(locator, this, "addressLine", buffer, theAddressLine); theCountryNameCode = this.getCountryNameCode(); strategy.appendField(locator, this, "countryNameCode", buffer, theCountryNameCode); theCountryName = this.getCountryName(); strategy.appendField(locator, this, "countryName", buffer, theCountryName); 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);
theAddressLine = this.getAddressLine(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "addressLine", theAddressLine), currentHashCode, theAddressLine); theCountryNameCode = this.getCountryNameCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "countryNameCode", theCountryNameCode), currentHashCode, theCountryNameCode); theCountryName = this.getCountryName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "countryName", theCountryName), currentHashCode, theCountryName); 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);
public AddressDetails.Country marshalCountry(Country src) { AddressDetails.Country dest = xal.createAddressDetailsCountry(); if (src.isSetAddressLine()) { for (AddressLine addressLine : src.getAddressLine()) dest.getAddressLine().add(marshalAddressLine(addressLine)); } if (src.isSetAdministrativeArea()) dest.setAdministrativeArea(marshalAdministrativeArea(src.getAdministrativeArea())); if (src.isSetCountryName()) { for (CountryName countryName : src.getCountryName()) dest.getCountryName().add(marshalCountryName(countryName)); } if (src.isSetCountryNameCode()) { for (CountryNameCode countryNameCode : src.getCountryNameCode()) dest.getCountryNameCode().add(marshalCountryNameCode(countryNameCode)); } if (src.isSetLocality()) dest.setLocality(marshalLocality(src.getLocality())); if (src.isSetThoroughfare()) dest.setThoroughfare(marshalThoroughfare(src.getThoroughfare())); return dest; }
public Country unmarshalCountry(AddressDetails.Country src) { Country dest = new Country(); if (src.isSetAddressLine()) { for (AddressLineElement addressLine : src.getAddressLine()) dest.addAddressLine(unmarshalAddressLine(addressLine)); } if (src.isSetAdministrativeArea()) dest.setAdministrativeArea(unmarshalAdministrativeArea(src.getAdministrativeArea())); if (src.isSetCountryName()) { for (CountryNameElement countryName : src.getCountryName()) dest.addCountryName(unmarshalCountryName(countryName)); } if (src.isSetCountryNameCode()) { for (AddressDetails.Country.CountryNameCode countryNameCode : src.getCountryNameCode()) dest.addCountryNameCode(unmarshalCountryNameCode(countryNameCode)); } if (src.isSetLocality()) dest.setLocality(unmarshalLocality(src.getLocality())); if (src.isSetThoroughfare()) dest.setThoroughfare(unmarshalThoroughfare(src.getThoroughfare())); return dest; }
public Object createNewInstance() { return new AddressDetails.Country(); }
/** * Create an instance of {@link AddressDetails.Country } * */ public AddressDetails.Country createAddressDetailsCountry() { return new AddressDetails.Country(); }
/** * Create an instance of {@link AddressDetails.Country } * */ public AddressDetails.Country createAddressDetailsCountry() { return new AddressDetails.Country(); }