Esempio n. 1
0
  @Override
  public Object copyTo(Object target, CopyBuilder copyBuilder) {
    Address copy = (target == null) ? new Address() : (Address) target;
    super.copyTo(copy, copyBuilder);

    if (isSetXalAddress()) {
      copy.setXalAddress((XalAddressProperty) copyBuilder.copy(xalAddress));
      if (copy.getXalAddress() == xalAddress) xalAddress.setParent(this);
    }

    if (isSetMultiPoint()) {
      copy.setMultiPoint((MultiPointProperty) copyBuilder.copy(multiPoint));
      if (copy.getMultiPoint() == multiPoint) multiPoint.setParent(this);
    }

    if (isSetGenericApplicationPropertyOfAddress()) {
      for (ADEComponent part : ade) {
        ADEComponent copyPart = (ADEComponent) copyBuilder.copy(part);
        copy.addGenericApplicationPropertyOfAddress(copyPart);

        if (part != null && copyPart == part) part.setParent(this);
      }
    }

    return copy;
  }
Esempio n. 2
0
  public Object copyTo(Object target, CopyBuilder copyBuilder) {
    CountryName copy = (target == null) ? new CountryName() : (CountryName) target;

    if (isSetContent()) copy.setContent(copyBuilder.copy(content));

    if (isSetType()) copy.setType(copyBuilder.copy(type));

    if (isSetCode()) copy.setCode(copyBuilder.copy(code));

    copy.unsetParent();

    return copy;
  }
  public Object copyTo(Object target, CopyBuilder copyBuilder) {
    PostBoxNumberExtension copy =
        (target == null) ? new PostBoxNumberExtension() : (PostBoxNumberExtension) target;

    if (isSetContent()) copy.setContent(copyBuilder.copy(content));

    if (isSetNumberExtensionSeparator())
      copy.setNumberExtensionSeparator(copyBuilder.copy(numberExtensionSeparator));

    copy.unsetParent();

    return copy;
  }
  public Object copyTo(Object target, CopyBuilder copyBuilder) {
    ThoroughfareNumberRange copy =
        (target == null) ? new ThoroughfareNumberRange() : (ThoroughfareNumberRange) target;

    if (isSetAddressLine()) {
      for (AddressLine part : addressLine) {
        AddressLine copyPart = (AddressLine) copyBuilder.copy(part);
        copy.addAddressLine(copyPart);

        if (part != null && copyPart == part) part.setParent(this);
      }
    }

    if (isSetThoroughfareNumberFrom()) {
      copy.setThoroughfareNumberFrom(
          (ThoroughfareNumberFrom) copyBuilder.copy(thoroughfareNumberFrom));
      if (copy.getThoroughfareNumberFrom() == thoroughfareNumberFrom)
        thoroughfareNumberFrom.setParent(this);
    }

    if (isSetThoroughfareNumberTo()) {
      copy.setThoroughfareNumberTo((ThoroughfareNumberTo) copyBuilder.copy(thoroughfareNumberTo));
      if (copy.getThoroughfareNumberTo() == thoroughfareNumberTo)
        thoroughfareNumberTo.setParent(this);
    }

    if (isSetRangeType()) copy.setRangeType(copyBuilder.copy(rangeType));

    if (isSetIndicator()) copy.setIndicator(copyBuilder.copy(indicator));

    if (isSetSeparator()) copy.setSeparator(copyBuilder.copy(separator));

    if (isSetIndicatorOccurrence())
      copy.setIndicatorOccurrence(copyBuilder.copy(indicatorOccurrence));

    if (isSetNumberRangeOccurrence())
      copy.setNumberRangeOccurrence(copyBuilder.copy(numberRangeOccurrence));

    if (isSetType()) copy.setType(copyBuilder.copy(type));

    if (isSetCode()) copy.setCode(copyBuilder.copy(code));

    copy.unsetParent();

    return copy;
  }
Esempio n. 5
0
  @SuppressWarnings("unchecked")
  public Object copyTo(Object target, CopyBuilder copyBuilder) {
    DirectPosition copy = (target == null) ? new DirectPosition() : (DirectPosition) target;

    if (isSetValue()) copy.setValue((List<Double>) copyBuilder.copy(value));

    if (isSetSrsDimension()) copy.setSrsDimension((Integer) copyBuilder.copy(srsDimension));

    if (isSetSrsName()) copy.setSrsName(copyBuilder.copy(srsName));

    if (isSetAxisLabels()) copy.setAxisLabels((List<String>) copyBuilder.copy(axisLabels));

    if (isSetUomLabels()) copy.setUomLabels((List<String>) copyBuilder.copy(uomLabels));

    copy.unsetParent();

    return copy;
  }
Esempio n. 6
0
  @Override
  public Object copyTo(Object target, CopyBuilder copyBuilder) {
    MultiCurve copy = (target == null) ? new MultiCurve() : (MultiCurve) target;
    super.copyTo(copy, copyBuilder);

    if (isSetCurveMember()) {
      for (CurveProperty part : curveMember) {
        CurveProperty copyPart = (CurveProperty) copyBuilder.copy(part);
        copy.addCurveMember(copyPart);

        if (part != null && copyPart == part) part.setParent(this);
      }
    }

    if (isSetCurveMembers()) {
      copy.setCurveMembers((CurveArrayProperty) copyBuilder.copy(curveMembers));
      if (copy.getCurveMembers() == curveMembers) curveMembers.setParent(this);
    }

    return copy;
  }
Esempio n. 7
0
  public Object copyTo(Object target, CopyBuilder copyBuilder) {
    File copy = (target == null) ? new File() : (File) target;

    if (isSetRangeParameters()) {
      copy.setRangeParameters((RangeParameters) copyBuilder.copy(rangeParameters));
      if (copy.getRangeParameters() == rangeParameters) rangeParameters.setParent(this);
    }

    if (isSetFileName()) copy.setFileName(copyBuilder.copy(fileName));

    if (isSetFileStructure())
      copy.setFileStructure((FileValueModel) copyBuilder.copy(fileStructure));

    if (isSetMimeType()) copy.setMimeType(copyBuilder.copy(mimeType));

    if (isSetCompression()) copy.setCompression(copyBuilder.copy(compression));

    copy.unsetParent();

    return copy;
  }
Esempio n. 8
0
  @Override
  public Object copyTo(Object target, CopyBuilder copyBuilder) {
    GroundSurface copy = (target == null) ? new GroundSurface() : (GroundSurface) target;
    super.copyTo(copy, copyBuilder);

    if (isSetGenericApplicationPropertyOfGroundSurface()) {
      for (ADEComponent part : ade) {
        ADEComponent copyPart = (ADEComponent) copyBuilder.copy(part);
        copy.addGenericApplicationPropertyOfGroundSurface(copyPart);

        if (part != null && copyPart == part) part.setParent(this);
      }
    }

    return copy;
  }
Esempio n. 9
0
  public Object copyTo(Object target, CopyBuilder copyBuilder) {
    Country copy = (target == null) ? new Country() : (Country) target;

    if (isSetAddressLine()) {
      for (AddressLine part : addressLine) {
        AddressLine copyPart = (AddressLine) copyBuilder.copy(part);
        copy.addAddressLine(copyPart);

        if (part != null && copyPart == part) part.setParent(this);
      }
    }

    if (isSetCountryName()) {
      for (CountryName part : countryName) {
        CountryName copyPart = (CountryName) copyBuilder.copy(part);
        copy.addCountryName(copyPart);

        if (part != null && copyPart == part) part.setParent(this);
      }
    }

    if (isSetCountryNameCode()) {
      for (CountryNameCode part : countryNameCode) {
        CountryNameCode copyPart = (CountryNameCode) copyBuilder.copy(part);
        copy.addCountryNameCode(copyPart);

        if (part != null && copyPart == part) part.setParent(this);
      }
    }

    if (isSetAdministrativeArea()) {
      copy.setAdministrativeArea((AdministrativeArea) copyBuilder.copy(administrativeArea));
      if (copy.getAdministrativeArea() == administrativeArea) administrativeArea.setParent(this);
    }

    if (isSetLocality()) {
      copy.setLocality((Locality) copyBuilder.copy(locality));
      if (copy.getLocality() == locality) locality.setParent(this);
    }

    if (isSetThoroughfare()) {
      copy.setThoroughfare((Thoroughfare) copyBuilder.copy(thoroughfare));
      if (copy.getThoroughfare() == thoroughfare) thoroughfare.setParent(this);
    }

    copy.unsetParent();

    return copy;
  }