it.uniroma2.art.sheet2rdf.header.GraphApplication Maven / Gradle / Ivy
package it.uniroma2.art.sheet2rdf.header;
import java.util.UUID;
import com.fasterxml.jackson.databind.JsonNode;
public abstract class GraphApplication {
protected String id; //id of the object, useful to identify the instance when the user updates it
public GraphApplication() {
id = UUID.randomUUID().toString();
}
public String getId() {
return id;
}
/**
* Removes the referenced node with the given id
* @param nodeId
*/
abstract public void removeNode(String nodeId);
abstract public JsonNode toJson();
abstract public void fromJson(JsonNode jsonNode);
abstract public String toString();
}