Beispiel #1
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;
  }
Beispiel #2
0
  public void setCurveMembers(CurveArrayProperty curveMembers) {
    if (curveMembers != null) curveMembers.setParent(this);

    this.curveMembers = curveMembers;
  }