Exemplo n.º 1
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;
  }
Exemplo n.º 2
0
  public void setRangeParameters(RangeParameters rangeParameters) {
    if (rangeParameters != null) rangeParameters.setParent(this);

    this.rangeParameters = rangeParameters;
  }