jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1225547 - /jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/state/ChangeTree.java
Date Thu, 29 Dec 2011 14:50:39 GMT
Author: mduerig
Date: Thu Dec 29 14:50:39 2011
New Revision: 1225547

URL: http://svn.apache.org/viewvc?rev=1225547&view=rev
Log:
Microkernel based prototype of JCR implementation (WIP)
- better toString()

Modified:
    jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/state/ChangeTree.java

Modified: jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/state/ChangeTree.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/state/ChangeTree.java?rev=1225547&r1=1225546&r2=1225547&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/state/ChangeTree.java
(original)
+++ jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/state/ChangeTree.java
Thu Dec 29 14:50:39 2011
@@ -506,11 +506,6 @@ public class ChangeTree {
             }
         }
 
-        @Override
-        public String toString() {
-            return getPath().toString();
-        }
-
         //------------------------------------------< internal >---
 
         void touch() { }
@@ -609,6 +604,11 @@ public class ChangeTree {
         }
 
         @Override
+        public String toString() {
+            return "Existing[" + getPath() + ']';
+        }
+
+        @Override
         NodeDelta remove() {
             return parent.addChild(new Removed(parent, name, false));
         }
@@ -653,6 +653,11 @@ public class ChangeTree {
         }
 
         @Override
+        public String toString() {
+            return "Added[" + getPath() + ']';
+        }
+
+        @Override
         NodeDelta remove() {
             return parent.removeChild(name);
         }
@@ -741,6 +746,11 @@ public class ChangeTree {
         }
 
         @Override
+        public String toString() {
+            return "Moved[" + getPath() + ']';
+        }
+
+        @Override
         NodeDelta remove() throws ItemNotFoundException {
             // convert source from moved away to removed
             if (source.parent.childNodes.remove(source.name) != null) {
@@ -821,6 +831,12 @@ public class ChangeTree {
         void moveTo(NodeDelta parent, String name) {
             throw new IllegalStateException("Removed");
         }
+
+        @Override
+        public String toString() {
+            return "Removed[" + getPath() + ']';
+        }
+
     }
 
 }



Mime
View raw message