Exemplo 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;
  }
Exemplo n.º 2
0
  public void setMultiPoint(MultiPointProperty multiPoint) {
    if (multiPoint != null) multiPoint.setParent(this);

    this.multiPoint = multiPoint;
  }
Exemplo n.º 3
0
  public void unsetMultiPoint() {
    if (isSetMultiPoint()) multiPoint.unsetParent();

    multiPoint = null;
  }