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

x33g5p2x  于2022-01-25 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(80)

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

Node.getStatus介绍

暂无

代码示例

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

@Override
public UpdateContainer doIt(Workspace workspace) throws CommandException {
  Node node = workspace.getFactory().getNode(nodeIdArg);
  SuperSelection sel = getSuperSelection(workspace);
  inputColumns.clear();
  outputColumns.clear();
  inputColumns.add(node.getHNodeId());
  outputColumns.add(node.getHNodeId());
  previousValue = node.getValue();
  previousStatus = node.getStatus();
  if (node.hasNestedTable()) {
    throw new CommandException(this, "Cell " + nodeIdArg
        + " has a nested table. It cannot be edited.");
  }        
  node.setValue(newValueArg, Node.NodeStatus.edited,
      workspace.getFactory());
  WorksheetUpdateFactory.detectSelectionStatusChange(worksheetId, workspace, this);
  UpdateContainer uc = WorksheetUpdateFactory.createWorksheetHierarchicalAndCleaningResultsUpdates(worksheetId, sel, workspace.getContextId());
  uc.add(new NodeChangedUpdate(worksheetId,
      nodeIdArg, newValueArg, Node.NodeStatus.edited));
  return uc;
}

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

oldNodeValueMap.put(node, node.getValue());
if (oldNodeStatusMap != null)
  oldNodeStatusMap.put(node, node.getStatus());

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

Node oldnode = cur.getNode(value.getId());
Row tmprow = newnode.getNestedTable().addRow(factory);
tmprow.getNeighborByColumnName("Values", factory).setValue(oldnode.getValue().asString(), oldnode.getStatus(), factory);

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

Node oldnode = cur.getNode(value.getId());
Row tmprow = newnode.getNestedTable().addRow(factory);
tmprow.getNeighborByColumnName("Values", factory).setValue(oldnode.getValue().asString(), oldnode.getStatus(), factory);

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

public static void cloneDataTableExistingRow(Row oldRow, Row newRow, List<HNode> hNodes, RepFactory factory, Map<String, String> mapping, SuperSelection sel) {
  for (HNode hnode : hNodes) {
    HNode newHNode = factory.getHNode(mapping.get(hnode.getId()));
    Node oldNode = oldRow.getNode(hnode.getId());
    Node newNode = newRow.getNode(newHNode.getId());
    if (oldNode == null)
      continue;
    if (!oldNode.hasNestedTable()) {
      newNode.setValue(oldNode.getValue(), oldNode.getStatus(), factory);
    }
    else {					
      cloneDataTable(oldNode.getNestedTable(), newNode.getNestedTable(), newHNode.getNestedTable(), hnode.getNestedTable().getSortedHNodes(), factory, sel);
    }
  }
}

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

public static Row cloneDataTable(Row oldRow, Table newDataTable, HTable newHTable, List<HNode> hNodes, RepFactory factory, SuperSelection sel) {
  Row newRow = newDataTable.addRow(factory);
  for (HNode hnode : hNodes) {
    HNode newHNode = newHTable.getHNodeFromColumnName(hnode.getColumnName());
    if (newHNode == null)
      continue;
    
    Node oldNode = oldRow.getNode(hnode.getId());
    Node newNode = newRow.getNode(newHNode.getId());
    if (oldNode == null)
      continue;
    if (!oldNode.hasNestedTable()) {
      newNode.setValue(oldNode.getValue(), oldNode.getStatus(), factory);
    }
    else {					
      cloneDataTable(oldNode.getNestedTable(), newNode.getNestedTable(), newHNode.getNestedTable(), hnode.getNestedTable().getSortedHNodes(), factory, sel);
    }
  }
  return newRow;
}

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

public static void cloneDataTable(Table oldDataTable, Table newDataTable, HTable newHTable, List<HNode> hNodes, RepFactory factory, SuperSelection sel) {
  ArrayList<Row> rows = oldDataTable.getRows(0, oldDataTable.getNumRows(), sel);
  for (Row row : rows) {
    Row newrow = newDataTable.addRow(factory);
    for (HNode hnode : hNodes) {
      HNode newHNode = newHTable.getHNodeFromColumnName(hnode.getColumnName());
      Node oldNode = row.getNode(hnode.getId());
      Node newNode = newrow.getNode(newHNode.getId());
      if (!oldNode.hasNestedTable()) {
        newNode.setValue(oldNode.getValue(), oldNode.getStatus(), factory);
      }
      else {					
        cloneDataTable(oldNode.getNestedTable(), newNode.getNestedTable(), newHNode.getNestedTable(), hnode.getNestedTable().getSortedHNodes(), factory, sel);
      }
    }
  }
}

相关文章