本文整理了Java中edu.isi.karma.rep.Node.clearValue()
方法的一些代码示例,展示了Node.clearValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.clearValue()
方法的具体详情如下:
包路径:edu.isi.karma.rep.Node
类名称:Node
方法名:clearValue
暂无
代码示例来源:origin: usc-isi-i2/Web-Karma
protected Map<String, String> gatherTransformedResults(Workspace workspace, String hNodeId) {
Map<String, String> rowToValueMapping = new HashMap<>();
HNodePath hNodePath = workspace.getFactory().getHNode(hNodeId).getHNodePath(workspace.getFactory());
List<Node> nodes = new ArrayList<>();
workspace.getWorksheet(worksheetId).getDataTable().collectNodes(hNodePath, nodes, getSuperSelection(workspace));
for (Node node : nodes) {
rowToValueMapping.put(node.getBelongsToRow().getId(), node.getValue().asString());
node.clearValue(NodeStatus.original);
affectedNodes.add(node);
}
return rowToValueMapping;
}
代码示例来源:origin: usc-isi-i2/Web-Karma
oldNodeStatusMap.put(node, node.getStatus());
node.clearValue(NodeStatus.edited);
node.clearValue(NodeStatus.edited);
代码示例来源:origin: usc-isi-i2/Web-Karma
@Override
public UpdateContainer undoIt(Workspace workspace) {
for (Node node : affectedNodes) {
HNode hNode = workspace.getFactory().getHNode(node.getHNodeId());
hNode.removeNestedTable();
node.setNestedTable(null, workspace.getFactory());
node.clearValue(NodeStatus.original);
}
affectedNodes.clear();
try {
if(previousPythonTransformationCommand instanceof SubmitPythonTransformationCommand)
{
SubmitPythonTransformationCommand prevCommand = (SubmitPythonTransformationCommand)previousPythonTransformationCommand;
//Previous python command exists, lets reset the values, and then start again
prevCommand.resetColumnValues(workspace);
}
UpdateContainer uc = previousPythonTransformationCommand.doIt(workspace);
return uc;
} catch (CommandException e) {
return new UpdateContainer(new ErrorUpdate("Error occured while applying previous Python transformation to the column."));
}
}
代码示例来源:origin: usc-isi-i2/Web-Karma
hNode.removeNestedTable();
node.setNestedTable(null, workspace.getFactory());
node.clearValue(NodeStatus.original);
内容来源于网络,如有侵权,请联系作者删除!