public Object copyTo(Object target, CopyBuilder copyBuilder) { final TExtensibleElements copy = ((target == null)?((TExtensibleElements) createCopy()):((TExtensibleElements) target)); { List<TDocumentation> sourceDocumentation; sourceDocumentation = this.getDocumentation(); List<TDocumentation> copyDocumentation = ((List<TDocumentation> ) copyBuilder.copy(sourceDocumentation)); copy.documentation = null; List<TDocumentation> uniqueDocumentationl = copy.getDocumentation(); uniqueDocumentationl.addAll(copyDocumentation); } { List<Object> sourceAny; sourceAny = this.getAny(); List<Object> copyAny = ((List<Object> ) copyBuilder.copy(sourceAny)); copy.any = null; List<Object> uniqueAnyl = copy.getAny(); uniqueAnyl.addAll(copyAny); } return copy; }
public Object copyTo(Object target, CopyBuilder copyBuilder) { final TExtensibleElements copy = ((target == null)?((TExtensibleElements) createCopy()):((TExtensibleElements) target)); { List<TDocumentation> sourceDocumentation; sourceDocumentation = this.getDocumentation(); List<TDocumentation> copyDocumentation = ((List<TDocumentation> ) copyBuilder.copy(sourceDocumentation)); copy.documentation = null; List<TDocumentation> uniqueDocumentationl = copy.getDocumentation(); uniqueDocumentationl.addAll(copyDocumentation); } { List<Object> sourceAny; sourceAny = this.getAny(); List<Object> copyAny = ((List<Object> ) copyBuilder.copy(sourceAny)); copy.any = null; List<Object> uniqueAnyl = copy.getAny(); uniqueAnyl.addAll(copyAny); } return copy; }