public class UpdateNode {
- public enum Status {EXIST,DELETED,NEW,CONTAINS};
-
-
- private Status status;
+ private UpdateStatus status;
private UpdateOp op;
private Resource r;
private String label;
* @param status
* @param changes
*/
- public UpdateNode(ReadGraph g, Status status, UpdateOp op) throws DatabaseException{
+ public UpdateNode(ReadGraph g, UpdateStatus status, UpdateOp op) throws DatabaseException{
this.status = status;
this.op = op;
this.label = getLabel(g, r);
}
- public UpdateNode(ReadGraph g, Status status, Resource r) throws DatabaseException {
+ public UpdateNode(ReadGraph g, UpdateStatus status, Resource r) throws DatabaseException {
this.status = status;
this.op = null;
return g.getPossibleObject(r, l0.PartOf);
}
- public void setStatus(Status status) {
+ public void setStatus(UpdateStatus status) {
this.status = status;
}
- public Status getStatus() {
+ public UpdateStatus getStatus() {
return status;
}