/** * Create an instance of {@link AddressType } * */ public AddressType createAddressType() { return new AddressType(); }
public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
public Object clone() { return copyTo(createNewInstance()); }
Boolean deliveryPointShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetDeliveryPoint(), rightObject.isSetDeliveryPoint()); if (deliveryPointShouldBeMergedAndSet == Boolean.TRUE) { List<String> lhsDeliveryPoint; lhsDeliveryPoint = (leftObject.isSetDeliveryPoint()?leftObject.getDeliveryPoint():null); List<String> rhsDeliveryPoint; rhsDeliveryPoint = (rightObject.isSetDeliveryPoint()?rightObject.getDeliveryPoint():null); List<String> mergedDeliveryPoint = ((List<String> ) strategy.merge(LocatorUtils.property(leftLocator, "deliveryPoint", lhsDeliveryPoint), LocatorUtils.property(rightLocator, "deliveryPoint", rhsDeliveryPoint), lhsDeliveryPoint, rhsDeliveryPoint, leftObject.isSetDeliveryPoint(), rightObject.isSetDeliveryPoint())); target.unsetDeliveryPoint(); if (mergedDeliveryPoint!= null) { List<String> uniqueDeliveryPointl = target.getDeliveryPoint(); uniqueDeliveryPointl.addAll(mergedDeliveryPoint); target.unsetDeliveryPoint(); Boolean cityShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetCity(), rightObject.isSetCity()); if (cityShouldBeMergedAndSet == Boolean.TRUE) { String lhsCity; lhsCity = leftObject.getCity(); String rhsCity; rhsCity = rightObject.getCity(); String mergedCity = ((String) strategy.merge(LocatorUtils.property(leftLocator, "city", lhsCity), LocatorUtils.property(rightLocator, "city", rhsCity), lhsCity, rhsCity, leftObject.isSetCity(), rightObject.isSetCity())); target.setCity(mergedCity); } else { if (cityShouldBeMergedAndSet == Boolean.FALSE) { Boolean administrativeAreaShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetAdministrativeArea(), rightObject.isSetAdministrativeArea()); if (administrativeAreaShouldBeMergedAndSet == Boolean.TRUE) { String lhsAdministrativeArea; lhsAdministrativeArea = leftObject.getAdministrativeArea();
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { theDeliveryPoint = (this.isSetDeliveryPoint()?this.getDeliveryPoint():null); strategy.appendField(locator, this, "deliveryPoint", buffer, theDeliveryPoint, this.isSetDeliveryPoint()); theCity = this.getCity(); strategy.appendField(locator, this, "city", buffer, theCity, this.isSetCity()); theAdministrativeArea = this.getAdministrativeArea(); strategy.appendField(locator, this, "administrativeArea", buffer, theAdministrativeArea, this.isSetAdministrativeArea()); thePostalCode = this.getPostalCode(); strategy.appendField(locator, this, "postalCode", buffer, thePostalCode, this.isSetPostalCode()); theCountry = this.getCountry(); strategy.appendField(locator, this, "country", buffer, theCountry, this.isSetCountry()); theElectronicMailAddress = (this.isSetElectronicMailAddress()?this.getElectronicMailAddress():null); strategy.appendField(locator, this, "electronicMailAddress", buffer, theElectronicMailAddress, this.isSetElectronicMailAddress());
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof AddressType) { final AddressType copy = ((AddressType) draftCopy); if ((this.deliveryPoint!= null)&&(!this.deliveryPoint.isEmpty())) { List<String> sourceDeliveryPoint; sourceDeliveryPoint = this.getDeliveryPoint(); @SuppressWarnings("unchecked") List<String> copyDeliveryPoint = ((List<String> ) strategy.copy(LocatorUtils.property(locator, "deliveryPoint", sourceDeliveryPoint), sourceDeliveryPoint)); copy.deliveryPoint = null; List<String> uniqueDeliveryPointl = copy.getDeliveryPoint(); uniqueDeliveryPointl.addAll(copyDeliveryPoint); } else { sourceCity = this.getCity(); String copyCity = ((String) strategy.copy(LocatorUtils.property(locator, "city", sourceCity), sourceCity)); copy.setCity(copyCity); } else { copy.city = null; sourceAdministrativeArea = this.getAdministrativeArea(); String copyAdministrativeArea = ((String) strategy.copy(LocatorUtils.property(locator, "administrativeArea", sourceAdministrativeArea), sourceAdministrativeArea)); copy.setAdministrativeArea(copyAdministrativeArea); } else { copy.administrativeArea = null; sourcePostalCode = this.getPostalCode(); String copyPostalCode = ((String) strategy.copy(LocatorUtils.property(locator, "postalCode", sourcePostalCode), sourcePostalCode)); copy.setPostalCode(copyPostalCode); } else {
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { theDeliveryPoint = this.getDeliveryPoint(); strategy.appendField(locator, this, "deliveryPoint", buffer, theDeliveryPoint); theCity = this.getCity(); strategy.appendField(locator, this, "city", buffer, theCity); theAdministrativeArea = this.getAdministrativeArea(); strategy.appendField(locator, this, "administrativeArea", buffer, theAdministrativeArea); thePostalCode = this.getPostalCode(); strategy.appendField(locator, this, "postalCode", buffer, thePostalCode); theCountry = this.getCountry(); strategy.appendField(locator, this, "country", buffer, theCountry); theElectronicMailAddress = this.getElectronicMailAddress(); strategy.appendField(locator, this, "electronicMailAddress", buffer, theElectronicMailAddress);
public AddressType withDeliveryPoint(Collection<String> values) { if (values!= null) { getDeliveryPoint().addAll(values); } return this; }
public Object copyTo(Object target) { final CopyStrategy strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); }
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; }
public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof AddressType) { final AddressType copy = ((AddressType) draftCopy); Boolean deliveryPointShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetDeliveryPoint()); if (deliveryPointShouldBeCopiedAndSet == Boolean.TRUE) { List<String> sourceDeliveryPoint; sourceDeliveryPoint = (this.isSetDeliveryPoint()?this.getDeliveryPoint():null); @SuppressWarnings("unchecked") List<String> copyDeliveryPoint = ((List<String> ) strategy.copy(LocatorUtils.property(locator, "deliveryPoint", sourceDeliveryPoint), sourceDeliveryPoint, this.isSetDeliveryPoint())); copy.unsetDeliveryPoint(); if (copyDeliveryPoint!= null) { List<String> uniqueDeliveryPointl = copy.getDeliveryPoint(); uniqueDeliveryPointl.addAll(copyDeliveryPoint); copy.unsetDeliveryPoint(); Boolean cityShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetCity()); if (cityShouldBeCopiedAndSet == Boolean.TRUE) { String sourceCity; sourceCity = this.getCity(); String copyCity = ((String) strategy.copy(LocatorUtils.property(locator, "city", sourceCity), sourceCity, this.isSetCity())); copy.setCity(copyCity); } else { if (cityShouldBeCopiedAndSet == Boolean.FALSE) { Boolean administrativeAreaShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetAdministrativeArea()); if (administrativeAreaShouldBeCopiedAndSet == Boolean.TRUE) { String sourceAdministrativeArea;
theDeliveryPoint = (this.isSetDeliveryPoint()?this.getDeliveryPoint():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "deliveryPoint", theDeliveryPoint), currentHashCode, theDeliveryPoint, this.isSetDeliveryPoint()); theCity = this.getCity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "city", theCity), currentHashCode, theCity, this.isSetCity()); theAdministrativeArea = this.getAdministrativeArea(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "administrativeArea", theAdministrativeArea), currentHashCode, theAdministrativeArea, this.isSetAdministrativeArea()); thePostalCode = this.getPostalCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "postalCode", thePostalCode), currentHashCode, thePostalCode, this.isSetPostalCode()); theCountry = this.getCountry(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "country", theCountry), currentHashCode, theCountry, this.isSetCountry()); theElectronicMailAddress = (this.isSetElectronicMailAddress()?this.getElectronicMailAddress():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "electronicMailAddress", theElectronicMailAddress), currentHashCode, theElectronicMailAddress, this.isSetElectronicMailAddress());
lhsDeliveryPoint = leftObject.getDeliveryPoint(); List<String> rhsDeliveryPoint; rhsDeliveryPoint = rightObject.getDeliveryPoint(); target.deliveryPoint = null; List<String> uniqueDeliveryPointl = target.getDeliveryPoint(); uniqueDeliveryPointl.addAll(((List<String> ) strategy.merge(LocatorUtils.property(leftLocator, "deliveryPoint", lhsDeliveryPoint), LocatorUtils.property(rightLocator, "deliveryPoint", rhsDeliveryPoint), lhsDeliveryPoint, rhsDeliveryPoint))); lhsCity = leftObject.getCity(); String rhsCity; rhsCity = rightObject.getCity(); target.setCity(((String) strategy.merge(LocatorUtils.property(leftLocator, "city", lhsCity), LocatorUtils.property(rightLocator, "city", rhsCity), lhsCity, rhsCity))); lhsAdministrativeArea = leftObject.getAdministrativeArea(); String rhsAdministrativeArea; rhsAdministrativeArea = rightObject.getAdministrativeArea(); target.setAdministrativeArea(((String) strategy.merge(LocatorUtils.property(leftLocator, "administrativeArea", lhsAdministrativeArea), LocatorUtils.property(rightLocator, "administrativeArea", rhsAdministrativeArea), lhsAdministrativeArea, rhsAdministrativeArea))); lhsPostalCode = leftObject.getPostalCode(); String rhsPostalCode; rhsPostalCode = rightObject.getPostalCode(); target.setPostalCode(((String) strategy.merge(LocatorUtils.property(leftLocator, "postalCode", lhsPostalCode), LocatorUtils.property(rightLocator, "postalCode", rhsPostalCode), lhsPostalCode, rhsPostalCode))); lhsCountry = leftObject.getCountry(); String rhsCountry; rhsCountry = rightObject.getCountry(); target.setCountry(((String) strategy.merge(LocatorUtils.property(leftLocator, "country", lhsCountry), LocatorUtils.property(rightLocator, "country", rhsCountry), lhsCountry, rhsCountry))); lhsElectronicMailAddress = leftObject.getElectronicMailAddress(); List<String> rhsElectronicMailAddress;
lhsDeliveryPoint = this.getDeliveryPoint(); List<String> rhsDeliveryPoint; rhsDeliveryPoint = that.getDeliveryPoint(); if (!strategy.equals(LocatorUtils.property(thisLocator, "deliveryPoint", lhsDeliveryPoint), LocatorUtils.property(thatLocator, "deliveryPoint", rhsDeliveryPoint), lhsDeliveryPoint, rhsDeliveryPoint)) { return false; lhsCity = this.getCity(); String rhsCity; rhsCity = that.getCity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "city", lhsCity), LocatorUtils.property(thatLocator, "city", rhsCity), lhsCity, rhsCity)) { return false; lhsAdministrativeArea = this.getAdministrativeArea(); String rhsAdministrativeArea; rhsAdministrativeArea = that.getAdministrativeArea(); if (!strategy.equals(LocatorUtils.property(thisLocator, "administrativeArea", lhsAdministrativeArea), LocatorUtils.property(thatLocator, "administrativeArea", rhsAdministrativeArea), lhsAdministrativeArea, rhsAdministrativeArea)) { return false; lhsPostalCode = this.getPostalCode(); String rhsPostalCode; rhsPostalCode = that.getPostalCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "postalCode", lhsPostalCode), LocatorUtils.property(thatLocator, "postalCode", rhsPostalCode), lhsPostalCode, rhsPostalCode)) { return false; lhsCountry = this.getCountry(); String rhsCountry; rhsCountry = that.getCountry(); if (!strategy.equals(LocatorUtils.property(thisLocator, "country", lhsCountry), LocatorUtils.property(thatLocator, "country", rhsCountry), lhsCountry, rhsCountry)) { return false;
public void setDeliveryPoint(List<String> value) { this.deliveryPoint = null; if (value!= null) { List<String> draftl = this.getDeliveryPoint(); draftl.addAll(value); } }
public Object copyTo(Object target) { final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); }
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; }
public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
lhsDeliveryPoint = (this.isSetDeliveryPoint()?this.getDeliveryPoint():null); List<String> rhsDeliveryPoint; rhsDeliveryPoint = (that.isSetDeliveryPoint()?that.getDeliveryPoint():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "deliveryPoint", lhsDeliveryPoint), LocatorUtils.property(thatLocator, "deliveryPoint", rhsDeliveryPoint), lhsDeliveryPoint, rhsDeliveryPoint, this.isSetDeliveryPoint(), that.isSetDeliveryPoint())) { return false; lhsCity = this.getCity(); String rhsCity; rhsCity = that.getCity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "city", lhsCity), LocatorUtils.property(thatLocator, "city", rhsCity), lhsCity, rhsCity, this.isSetCity(), that.isSetCity())) { return false; lhsAdministrativeArea = this.getAdministrativeArea(); String rhsAdministrativeArea; rhsAdministrativeArea = that.getAdministrativeArea(); if (!strategy.equals(LocatorUtils.property(thisLocator, "administrativeArea", lhsAdministrativeArea), LocatorUtils.property(thatLocator, "administrativeArea", rhsAdministrativeArea), lhsAdministrativeArea, rhsAdministrativeArea, this.isSetAdministrativeArea(), that.isSetAdministrativeArea())) { return false; lhsPostalCode = this.getPostalCode(); String rhsPostalCode; rhsPostalCode = that.getPostalCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "postalCode", lhsPostalCode), LocatorUtils.property(thatLocator, "postalCode", rhsPostalCode), lhsPostalCode, rhsPostalCode, this.isSetPostalCode(), that.isSetPostalCode())) { return false; lhsCountry = this.getCountry(); String rhsCountry; rhsCountry = that.getCountry(); if (!strategy.equals(LocatorUtils.property(thisLocator, "country", lhsCountry), LocatorUtils.property(thatLocator, "country", rhsCountry), lhsCountry, rhsCountry, this.isSetCountry(), that.isSetCountry())) { return false;