alignmentId);
final UpdateContainer uc = new UpdateContainer();
Node node = alignment.getNodeById(nodeId);
if(node instanceof LiteralNode) {
final LiteralNode lNode = (LiteralNode)node;
uc.add(new AbstractUpdate() {
@Override
public void generateJson(String prefix, PrintWriter pw,
VWorkspace vWorkspace) {
try {
JSONStringer jsonStr = new JSONStringer();
JSONWriter writer = jsonStr.object();
writer.key("worksheetId").value(worksheetId);
writer.key("updateType").value("LiteralNodeUpdate");
writer.key("node");
writer.object();
writer.key("value").value(lNode.getValue());
String type = lNode.getDatatype().getLocalName();
if(type != null && type.length() > 0)
type = lNode.getDatatype().getDisplayName();
else
type = "";
writer.key("type").value(type);
writer.key("isUri").value(lNode.isUri());
writer.endObject();
writer.endObject();
pw.print(writer.toString());