/** * Create an instance of {@link PostalRouteType } * */ public PostalRouteType createPostalRouteType() { return new PostalRouteType(); }
public void setAddressLine(List<AddressLine> value) { List<AddressLine> draftl = this.getAddressLine(); draftl.addAll(value); }
public void setPostalRouteName(List<PostalRouteType.PostalRouteName> value) { List<PostalRouteType.PostalRouteName> draftl = this.getPostalRouteName(); draftl.addAll(value); }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof PostalRouteType) { final PostalRouteType copy = ((PostalRouteType) 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 { sourcePostalRouteName = this.getPostalRouteName(); @SuppressWarnings("unchecked") List<PostalRouteType.PostalRouteName> copyPostalRouteName = ((List<PostalRouteType.PostalRouteName> ) strategy.copy(LocatorUtils.property(locator, "postalRouteName", sourcePostalRouteName), sourcePostalRouteName)); copy.postalRouteName = null; List<PostalRouteType.PostalRouteName> uniquePostalRouteNamel = copy.getPostalRouteName(); uniquePostalRouteNamel.addAll(copyPostalRouteName); } else { sourcePostalRouteNumber = this.getPostalRouteNumber(); PostalRouteType.PostalRouteNumber copyPostalRouteNumber = ((PostalRouteType.PostalRouteNumber) strategy.copy(LocatorUtils.property(locator, "postalRouteNumber", sourcePostalRouteNumber), sourcePostalRouteNumber)); copy.setPostalRouteNumber(copyPostalRouteNumber); } else { copy.postalRouteNumber = null; sourcePostBox = this.getPostBox(); PostBox copyPostBox = ((PostBox) strategy.copy(LocatorUtils.property(locator, "postBox", sourcePostBox), sourcePostBox));
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { theAddressLine = this.getAddressLine(); strategy.appendField(locator, this, "addressLine", buffer, theAddressLine); thePostalRouteName = this.getPostalRouteName(); strategy.appendField(locator, this, "postalRouteName", buffer, thePostalRouteName); thePostalRouteNumber = this.getPostalRouteNumber(); strategy.appendField(locator, this, "postalRouteNumber", buffer, thePostalRouteNumber); thePostBox = this.getPostBox(); strategy.appendField(locator, this, "postBox", buffer, thePostBox); theAny = this.getAny(); strategy.appendField(locator, this, "any", buffer, theAny); theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType);
public PostalRoute unmarshalPostalRoute(PostalRouteType src) { PostalRoute dest = new PostalRoute(); if (src.isSetAddressLine()) { for (AddressLineElement addressLine : src.getAddressLine()) dest.addAddressLine(unmarshalAddressLine(addressLine)); } if (src.isSetPostalRouteName()) { for (PostalRouteType.PostalRouteName postalRouteName : src.getPostalRouteName()) dest.addPostalRouteName(unmarshalPostalRouteName(postalRouteName)); } if (src.isSetPostalRouteNumber()) dest.setPostalRouteNumber(unmarshalPostalRouteNumber(src.getPostalRouteNumber())); if (src.isSetPostBox()) dest.setPostBox(unmarshalPostBox(src.getPostBox())); if (src.isSetType()) dest.setType(src.getType()); return dest; }
public PostalRouteType marshalPostalRoute(PostalRoute src) { PostalRouteType dest = xal.createPostalRouteType(); if (src.isSetAddressLine()) { for (AddressLine addressLine : src.getAddressLine()) dest.getAddressLine().add(marshalAddressLine(addressLine)); } if (src.isSetPostalRouteName()) { for (PostalRouteName postalRouteName : src.getPostalRouteName()) dest.getPostalRouteName().add(marshalPostalRouteName(postalRouteName)); } if (src.isSetPostalRouteNumber()) dest.setPostalRouteNumber(marshalPostalRouteNumber(src.getPostalRouteNumber())); if (src.isSetPostBox()) dest.setPostBox(marshalPostBox(src.getPostBox())); if (src.isSetType()) dest.setType(src.getType()); return dest; }
public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
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))); lhsPostalRouteName = leftObject.getPostalRouteName(); List<PostalRouteType.PostalRouteName> rhsPostalRouteName; rhsPostalRouteName = rightObject.getPostalRouteName(); target.postalRouteName = null; List<PostalRouteType.PostalRouteName> uniquePostalRouteNamel = target.getPostalRouteName(); uniquePostalRouteNamel.addAll(((List<PostalRouteType.PostalRouteName> ) strategy.merge(LocatorUtils.property(leftLocator, "postalRouteName", lhsPostalRouteName), LocatorUtils.property(rightLocator, "postalRouteName", rhsPostalRouteName), lhsPostalRouteName, rhsPostalRouteName))); lhsPostalRouteNumber = leftObject.getPostalRouteNumber(); PostalRouteType.PostalRouteNumber rhsPostalRouteNumber; rhsPostalRouteNumber = rightObject.getPostalRouteNumber(); target.setPostalRouteNumber(((PostalRouteType.PostalRouteNumber) strategy.merge(LocatorUtils.property(leftLocator, "postalRouteNumber", lhsPostalRouteNumber), LocatorUtils.property(rightLocator, "postalRouteNumber", rhsPostalRouteNumber), lhsPostalRouteNumber, rhsPostalRouteNumber))); lhsPostBox = leftObject.getPostBox(); PostBox rhsPostBox; rhsPostBox = rightObject.getPostBox(); target.setPostBox(((PostBox) strategy.merge(LocatorUtils.property(leftLocator, "postBox", lhsPostBox), LocatorUtils.property(rightLocator, "postBox", rhsPostBox), lhsPostBox, rhsPostBox))); lhsAny = leftObject.getAny(); List<Object> rhsAny; rhsAny = rightObject.getAny(); target.any = null; List<Object> uniqueAnyl = target.getAny();
theAddressLine = this.getAddressLine(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "addressLine", theAddressLine), currentHashCode, theAddressLine); thePostalRouteName = this.getPostalRouteName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "postalRouteName", thePostalRouteName), currentHashCode, thePostalRouteName); thePostalRouteNumber = this.getPostalRouteNumber(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "postalRouteNumber", thePostalRouteNumber), currentHashCode, thePostalRouteNumber); thePostBox = this.getPostBox(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "postBox", thePostBox), currentHashCode, thePostBox); theAny = this.getAny(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "any", theAny), currentHashCode, theAny); theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType);
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; lhsPostalRouteName = this.getPostalRouteName(); List<PostalRouteType.PostalRouteName> rhsPostalRouteName; rhsPostalRouteName = that.getPostalRouteName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "postalRouteName", lhsPostalRouteName), LocatorUtils.property(thatLocator, "postalRouteName", rhsPostalRouteName), lhsPostalRouteName, rhsPostalRouteName)) { return false; lhsPostalRouteNumber = this.getPostalRouteNumber(); PostalRouteType.PostalRouteNumber rhsPostalRouteNumber; rhsPostalRouteNumber = that.getPostalRouteNumber(); if (!strategy.equals(LocatorUtils.property(thisLocator, "postalRouteNumber", lhsPostalRouteNumber), LocatorUtils.property(thatLocator, "postalRouteNumber", rhsPostalRouteNumber), lhsPostalRouteNumber, rhsPostalRouteNumber)) { return false; lhsPostBox = this.getPostBox(); PostBox rhsPostBox; rhsPostBox = that.getPostBox(); if (!strategy.equals(LocatorUtils.property(thisLocator, "postBox", lhsPostBox), LocatorUtils.property(thatLocator, "postBox", rhsPostBox), lhsPostBox, rhsPostBox)) { return false; lhsAny = this.getAny(); List<Object> rhsAny; rhsAny = that.getAny(); if (!strategy.equals(LocatorUtils.property(thisLocator, "any", lhsAny), LocatorUtils.property(thatLocator, "any", rhsAny), lhsAny, rhsAny)) { return false;
/** * Create an instance of {@link PostalRouteType } * */ public PostalRouteType createPostalRouteType() { return new PostalRouteType(); }
public Object createNewInstance() { return new PostalRouteType(); }