org.dataconservancy.ui.model.DataItem.setFiles()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中org.dataconservancy.ui.model.DataItem.setFiles()方法的一些代码示例,展示了DataItem.setFiles()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataItem.setFiles()方法的具体详情如下:
包路径:org.dataconservancy.ui.model.DataItem
类名称:DataItem
方法名:setFiles

DataItem.setFiles介绍

[英]Attach to a list of file to be associated to the data set
[中]附加到要与数据集关联的文件列表

代码示例

代码示例来源:origin: org.dataconservancy.ui/dcs-ui-mapper

dataItem.setFiles(null);
  xstream.toXML(dataItem, fos);
  dataItem.setFiles(files);
} catch (IOException e) {
  String path = null;

代码示例来源:origin: org.dataconservancy.ui/dcs-ui-mapper

InputStream fis = new URL(dataSetMetadataFile.getSource()).openStream();
  ds = (DataItem)xstream.fromXML(fis);
  ds.setFiles(null);  // this should be empty, as it will be populated by the archive
} catch (Exception e) {
  final String msg = "Error retrieving stream '" + dataSetMetadataFile.getSource() + "' from the archive: " + e.getMessage();

代码示例来源:origin: org.dataconservancy.dcs/dcs-ui-model

this.depositorID = depositor;
this.depositDate = depositDate;
setFiles(files);
this.parentId = parentId;
setAlternateIds(alternateIds);

代码示例来源:origin: org.dataconservancy.model/dcs-ui-model

this.depositorID = depositor;
this.depositDate = depositDate;
setFiles(files);
this.parentId = parentId;
setAlternateIds(alternateIds);

代码示例来源:origin: org.dataconservancy.dcs/dcs-ui-model-builder-xstream

dataItemObject.setFiles(fileList);

代码示例来源:origin: org.dataconservancy.model/dcs-ui-model-builder-xstream

dataItemObject.setFiles(fileList);

代码示例来源:origin: org.dataconservancy.model/dcs-ui-model-builder-xstream

dataItemObject.setFiles(fileList);
} else if (ename.equals(E_PARENT_ID)) {
  final String value = reader.getValue();

代码示例来源:origin: org.dataconservancy.dcs/dcs-ui-model-builder-xstream

dataItemObject.setFiles(fileList);
} else if (ename.equals(E_PARENT_ID)) {
  final String value = reader.getValue();

相关文章