本文整理了Java中com.googlecode.fascinator.common.JsonObject.remove()
方法的一些代码示例,展示了JsonObject.remove()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JsonObject.remove()
方法的具体详情如下:
包路径:com.googlecode.fascinator.common.JsonObject
类名称:JsonObject
方法名:remove
暂无
代码示例来源:origin: com.googlecode.the-fascinator/fascinator-common
public boolean delete(String id) {
JsonObject toRemove = getWritableParent(id);
// Confirm validity of request
if (toRemove == null) {
return false;
}
toRemove.remove(id);
return true;
}
代码示例来源:origin: com.googlecode.the-fascinator/fascinator-common
public boolean move(String id, String destination) {
// Find our nodes
JsonObject toRemove = getWritableParent(id);
JsonObject toMove = getWritableNode(destination);
// Confirm validity of request
if (toRemove == null || toMove == null) {
return false;
}
// Now actually move it
toMove.put(id, toRemove.get(id));
toRemove.remove(id);
// Update metadata
getNode(id).setParentKey(destination);
return true;
}
代码示例来源:origin: com.googlecode.redbox-mint/plugin-transaction-curation-mint
"publish");
task.remove("oid") ;
task.put("identifier", relatedId);
代码示例来源:origin: com.googlecode.redbox-mint/plugin-transaction-curation-redbox
relatedOid, "publish");
task.remove("oid");
task.put("identifier", relatedId);
代码示例来源:origin: com.googlecode.the-fascinator/fascinator-common
toRemove.remove(id);
代码示例来源:origin: com.googlecode.the-fascinator/fascinator-common
toRemove.remove(id);
代码示例来源:origin: com.googlecode.redbox-mint/plugin-transaction-curation-redbox
"curation-query");
task.remove("oid");
task.put("identifier", relatedId);
内容来源于网络,如有侵权,请联系作者删除!