
com.weaverplatform.protocol.model.TruncateGraphOperation Maven / Gradle / Ivy
package com.weaverplatform.protocol.model;
import java.util.Objects;
/**
* @author Mohamad Alamili
*/
public class TruncateGraphOperation extends WriteOperation {
private String removeId, removeGraph;
public TruncateGraphOperation(String graph, String removeId) {
super(null);
this.removeId = removeId;
super.setGraph(graph);
}
public String getRemoveId() {
return removeId;
}
@Override
public WriteOperationAction getAction() {
return WriteOperationAction.TRUNCATE_GRAPH;
}
public void setRemoveId(String removeId) {
this.removeId = removeId;
}
public String getRemoveGraph() {
return removeGraph;
}
public void setRemoveGraph(String removeGraph) {
this.removeGraph = removeGraph;
}
@Override
public boolean equals(Object obj) {
if(!(obj instanceof TruncateGraphOperation)) {
return false;
}
TruncateGraphOperation other = (TruncateGraphOperation) obj;
return Objects.equals(getGraph(), other.getGraph());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy