You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by Apache Wiki <wi...@apache.org> on 2012/10/18 17:22:40 UTC

[Jackrabbit Wiki] Update of "Jsop" by stefan

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The "Jsop" page has been changed by stefan:
http://wiki.apache.org/jackrabbit/Jsop?action=diff&rev1=47&rev2=48

Comment:
OAK-384: get rid of add-property json diff syntax

  {{{
  // JSOP-Diff Proposal
  DIFFS     ::= (ADD | SET | REMOVE | MOVE | COPY | TEST | METADATA | EXTENSION)*
- ADD       ::= "+" STRING ":" (OBJECT | ATOM | ARRAY)
+ ADD       ::= "+" STRING ":" OBJECT
  SET       ::= "^" STRING ":" ATOM | ARRAY
  REMOVE    ::= "-" STRING
  MOVE      ::= ">" STRING ":" STRING
@@ -101, +101 @@

  {{{
  diffs =   *( ws ( add / set / remove / move / copy / test ) ws )
  
- add =     "+" ws pointer ws ":" ws ( object / atom / array )
+ add =     "+" ws pointer ws ":" ws object
  copy =    "*" ws pointer ws ":" ws pointer
  move =    ">" ws pointer ws ":" ws pointer
  remove =  "-" ws pointer
@@ -139, +139 @@

  '''diff:'''
  
   * addNodeDiff
-  * addPropertyDiff
   * setPropertyDiff
   * removeNodeDiff
   * removePropertyDiff
@@ -164, +163 @@

  
   * ^ pathString: propertyValue
  
+ Modifies the value of an existing property or otherwise creates a property with the specified value. 
+ 
  '''moveNodeDiff:'''
  
   * > pathString: newPathString