]> gerrit.simantics Code Review - simantics/interop.git/blobdiff - org.simantics.interop.update/src/org/simantics/interop/update/model/UpdateNode.java
SCL bindings for model update
[simantics/interop.git] / org.simantics.interop.update / src / org / simantics / interop / update / model / UpdateNode.java
index 159abd8d9f14a0079255d088996ad826072e4e50..cc996a28239159d5ef94d666f49f2a9c1bae6f1f 100644 (file)
@@ -12,10 +12,7 @@ import org.simantics.layer0.Layer0;
 
 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;
@@ -28,7 +25,7 @@ public class UpdateNode {
         * @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;
@@ -36,7 +33,7 @@ public class UpdateNode {
                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;
@@ -53,11 +50,11 @@ public class UpdateNode {
                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;
        }