/** * Create an instance of {@link FirmType } * */ public FirmType createFirmType() { return new FirmType(); }
public void setAddressLine(List<AddressLine> value) { List<AddressLine> draftl = this.getAddressLine(); draftl.addAll(value); }
public void setDepartment(List<Department> value) { List<Department> draftl = this.getDepartment(); draftl.addAll(value); }
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))); lhsFirmName = leftObject.getFirmName(); List<FirmType.FirmName> rhsFirmName; rhsFirmName = rightObject.getFirmName(); target.firmName = null; List<FirmType.FirmName> uniqueFirmNamel = target.getFirmName(); uniqueFirmNamel.addAll(((List<FirmType.FirmName> ) strategy.merge(LocatorUtils.property(leftLocator, "firmName", lhsFirmName), LocatorUtils.property(rightLocator, "firmName", rhsFirmName), lhsFirmName, rhsFirmName))); lhsDepartment = leftObject.getDepartment(); List<Department> rhsDepartment; rhsDepartment = rightObject.getDepartment(); target.department = null; List<Department> uniqueDepartmentl = target.getDepartment(); uniqueDepartmentl.addAll(((List<Department> ) strategy.merge(LocatorUtils.property(leftLocator, "department", lhsDepartment), LocatorUtils.property(rightLocator, "department", rhsDepartment), lhsDepartment, rhsDepartment))); lhsMailStop = leftObject.getMailStop(); MailStopType rhsMailStop; rhsMailStop = rightObject.getMailStop(); target.setMailStop(((MailStopType) strategy.merge(LocatorUtils.property(leftLocator, "mailStop", lhsMailStop), LocatorUtils.property(rightLocator, "mailStop", rhsMailStop), lhsMailStop, rhsMailStop))); lhsPostalCode = leftObject.getPostalCode(); PostalCode rhsPostalCode; rhsPostalCode = rightObject.getPostalCode();
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { theAddressLine = this.getAddressLine(); strategy.appendField(locator, this, "addressLine", buffer, theAddressLine); theFirmName = this.getFirmName(); strategy.appendField(locator, this, "firmName", buffer, theFirmName); theDepartment = this.getDepartment(); strategy.appendField(locator, this, "department", buffer, theDepartment); theMailStop = this.getMailStop(); strategy.appendField(locator, this, "mailStop", buffer, theMailStop); thePostalCode = this.getPostalCode(); strategy.appendField(locator, this, "postalCode", buffer, thePostalCode); theAny = this.getAny(); strategy.appendField(locator, this, "any", buffer, theAny); theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType);
public Firm unmarshalFirm(FirmType src) { Firm dest = new Firm(); if (src.isSetAddressLine()) { for (AddressLineElement addressLine : src.getAddressLine()) dest.addAddressLine(unmarshalAddressLine(addressLine)); } if (src.isSetDepartment()) { for (DepartmentElement department : src.getDepartment()) dest.addDepartment(unmarshalDepartment(department)); } if (src.isSetFirmName()) { for (FirmType.FirmName firmName : src.getFirmName()) dest.addFirmName(unmarshalFirmName(firmName)); } if (src.isSetMailStop()) dest.setMailStop(unmarshalMailStop(src.getMailStop())); if (src.isSetPostalCode()) dest.setPostalCode(unmarshalPostalCode(src.getPostalCode())); if (src.isSetType()) dest.setType(src.getType()); return dest; }
public FirmType marshalFirm(Firm src) { FirmType dest = xal.createFirmType(); if (src.isSetAddressLine()) { for (AddressLine addressLine : src.getAddressLine()) dest.getAddressLine().add(marshalAddressLine(addressLine)); } if (src.isSetDepartment()) { for (Department department : src.getDepartment()) dest.getDepartment().add(marshalDepartment(department)); } if (src.isSetFirmName()) { for (FirmName firmName : src.getFirmName()) dest.getFirmName().add(marshalFirmName(firmName)); } if (src.isSetMailStop()) dest.setMailStop(marshalMailStop(src.getMailStop())); if (src.isSetPostalCode()) dest.setPostalCode(marshalPostalCode(src.getPostalCode())); if (src.isSetType()) dest.setType(src.getType()); return dest; }
public void setFirmName(List<FirmType.FirmName> value) { List<FirmType.FirmName> draftl = this.getFirmName(); draftl.addAll(value); }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof FirmType) { final FirmType copy = ((FirmType) 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 { sourceFirmName = this.getFirmName(); @SuppressWarnings("unchecked") List<FirmType.FirmName> copyFirmName = ((List<FirmType.FirmName> ) strategy.copy(LocatorUtils.property(locator, "firmName", sourceFirmName), sourceFirmName)); copy.firmName = null; List<FirmType.FirmName> uniqueFirmNamel = copy.getFirmName(); uniqueFirmNamel.addAll(copyFirmName); } else { sourceDepartment = this.getDepartment(); @SuppressWarnings("unchecked") List<Department> copyDepartment = ((List<Department> ) strategy.copy(LocatorUtils.property(locator, "department", sourceDepartment), sourceDepartment)); copy.department = null; List<Department> uniqueDepartmentl = copy.getDepartment(); uniqueDepartmentl.addAll(copyDepartment); } else {
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; lhsFirmName = this.getFirmName(); List<FirmType.FirmName> rhsFirmName; rhsFirmName = that.getFirmName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "firmName", lhsFirmName), LocatorUtils.property(thatLocator, "firmName", rhsFirmName), lhsFirmName, rhsFirmName)) { return false; lhsDepartment = this.getDepartment(); List<Department> rhsDepartment; rhsDepartment = that.getDepartment(); if (!strategy.equals(LocatorUtils.property(thisLocator, "department", lhsDepartment), LocatorUtils.property(thatLocator, "department", rhsDepartment), lhsDepartment, rhsDepartment)) { return false; lhsMailStop = this.getMailStop(); MailStopType rhsMailStop; rhsMailStop = that.getMailStop(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mailStop", lhsMailStop), LocatorUtils.property(thatLocator, "mailStop", rhsMailStop), lhsMailStop, rhsMailStop)) { return false; lhsPostalCode = this.getPostalCode(); PostalCode rhsPostalCode; rhsPostalCode = that.getPostalCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "postalCode", lhsPostalCode), LocatorUtils.property(thatLocator, "postalCode", rhsPostalCode), lhsPostalCode, rhsPostalCode)) { return false;
theAddressLine = this.getAddressLine(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "addressLine", theAddressLine), currentHashCode, theAddressLine); theFirmName = this.getFirmName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "firmName", theFirmName), currentHashCode, theFirmName); theDepartment = this.getDepartment(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "department", theDepartment), currentHashCode, theDepartment); theMailStop = this.getMailStop(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mailStop", theMailStop), currentHashCode, theMailStop); thePostalCode = this.getPostalCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "postalCode", thePostalCode), currentHashCode, thePostalCode); 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);
/** * Create an instance of {@link FirmType } * */ public FirmType createFirmType() { return new FirmType(); }
public Object createNewInstance() { return new FirmType(); }