edu.isi.karma.rep.Worksheet.setRevisedWorksheet()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(102)

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

Worksheet.setRevisedWorksheet介绍

暂无

代码示例

代码示例来源:origin: usc-isi-i2/Web-Karma

@Override
public UpdateContainer doIt(Workspace workspace) throws CommandException {
  UpdateContainer c = new UpdateContainer();
  try {
    Import imp = createImport(workspace);
    Worksheet wsht = imp.generateWorksheet();
    if (hasRevisionId()) {
      Worksheet revisedWorksheet = workspace.getWorksheet(getRevisionId());
      wsht.setRevisedWorksheet(revisedWorksheet);  
    }
    c.add(new WorksheetListUpdate());
    c.append(WorksheetUpdateFactory.createWorksheetHierarchicalAndCleaningResultsUpdates(wsht.getId(), SuperSelectionManager.DEFAULT_SELECTION, workspace.getContextId()));
  } catch (JSONException | IOException | KarmaException | NullPointerException | ClassNotFoundException e) {
    logger.error("Error occured while generating worksheet from " + getTitle() + "!", e);
    return new UpdateContainer(new ErrorUpdate(
        "Error occured during import: " + e.getMessage()));
  }
  return c;
}

代码示例来源:origin: usc-isi-i2/Web-Karma

@Override
  public UpdateContainer doIt(Workspace workspace) throws CommandException {
    UpdateContainer uc = new UpdateContainer();
    try {
      Import imp = createImport(workspace);
      final Worksheet wsht = imp.generateWorksheet();
      if (hasRevisionId()) {
        Worksheet revisedWorksheet = workspace.getWorksheet(getRevisionId());
        wsht.setRevisedWorksheet(revisedWorksheet);  
      }
      uc.add(new WorksheetListUpdate());
      uc.append(WorksheetUpdateFactory.createWorksheetHierarchicalAndCleaningResultsUpdates(wsht.getId(), SuperSelectionManager.DEFAULT_SELECTION, workspace.getContextId()));
      if (savePreset) {
        uc.append(savePreset(workspace, wsht));
      }
    } catch (JSONException | IOException | KarmaException | NullPointerException | ClassNotFoundException e) {
      logger.error("Error occured while generating worksheet from " + getTitle() + "!", e);
      return new UpdateContainer(new ErrorUpdate(
          "Error occured during import: " + e.getMessage()));
    }
    return uc;
  }
}

代码示例来源:origin: usc-isi-i2/Web-Karma

wsht.setRevisedWorksheet(revisedWorksheet);

相关文章