jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1241539 - /jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/state/ChangeLog.java
Date Tue, 07 Feb 2012 18:10:26 GMT
Author: mduerig
Date: Tue Feb  7 18:10:26 2012
New Revision: 1241539

URL: http://svn.apache.org/viewvc?rev=1241539&view=rev
Log:
Microkernel based prototype of JCR implementation (WIP)
- Examples for all cases

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

Modified: jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/state/ChangeLog.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/state/ChangeLog.java?rev=1241539&r1=1241538&r2=1241539&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/state/ChangeLog.java
(original)
+++ jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/state/ChangeLog.java
Tue Feb  7 18:10:26 2012
@@ -204,6 +204,34 @@ public class ChangeLog {
 
       The cases which are marked illegal cannot occur in valid change logs. That is, if such
a
       case occurred, the containing change log would be invalid.
+
+      Following some examples in JSOP notation for each of the above cases and its respective
+      special cases.
+
+      1.   >/a:/b >/c:/d     =  >/c:/d >/a:b
+      2.   >/a:/b >/a/b:/c      illegal
+      3.   >/a:/b >/a:/c        illegal
+      4.   >/a/b:/c >/a:/d   =  >/a:/d >/d/b:/c
+      4.   >/a/b:/c >/a:/c/d    does not commute  (q < s)
+      4'.  -/a/b -/a         =  -/a               (s = NIL and q = NIL)
+      4'.  >/a/b:/c -/a      =  does not commute  (s = NIL)
+      5.   >/a:/b >/c:/d     =  >/c:/d >/a:b
+      6.   >/a:/b >/c:/a/d      illegal
+      7.   >/a:/b >/c:/a        does not commute
+      8.   >/a/d:/b >/c:/a      illegal
+      9.   >/a:/b >/c:/d     =  >/c:/d >/a:b
+      10.  >/a:/b >/b/c:/d   =  >/a/c:/d >/a:/b
+      10'. +/b:{} >/b/c:/       illegal
+      11.  >/a:/b >/b:/c     =  >/a:/c
+      12.  >/a:/b/c >/b:/d   =  >/b:/d >/a:/d/c
+      12'. >/a:/b/c -/b      =  -/b -/a
+      13:  >/a:/b >/c:/d     =  >/c:/d >/a:b
+      14.  >/a:/b >/c:/b/d   =  >/c:/a/d >/a:/b
+      14.  >/a/b:/b >/a:/b/d    does not commute  (p > r)
+      14'. +/b:{} >/c:/b/c      does not commute  (parent of s = q and p = NIL)
+      14'. +/b:{} >/c:/b/c/d    illegal           (p = NIL)
+      15.  >/a:/b >/c:/b        illegal
+      16.  >/a:/b/d >/c:/b      illegal
      */
 
     /**



Mime
View raw message