Class OrderedJsonReader

java.lang.Object
org.apache.sling.jcr.contentloader.internal.readers.JsonReader
org.apache.sling.jcr.contentloader.internal.readers.OrderedJsonReader
All Implemented Interfaces:
ContentReader

public class OrderedJsonReader extends JsonReader
Specific JsonReader, OrderedJsonReader parse json document exactly the same, but does specific look up for SLING:ordered : [{SLING:name: "first", ...},{SLING:name: "second", ...}] type of structure that will force import of an orderable node with first and second children, in that order. Note that this is the reponsability of the json file to set appropriate node type / mixins.
  • Constructor Details

    • OrderedJsonReader

      public OrderedJsonReader()
  • Method Details

    • writeChildren

      protected void writeChildren(jakarta.json.JsonObject obj, ContentCreator contentCreator) throws javax.jcr.RepositoryException
      Overrides:
      writeChildren in class JsonReader
      Throws:
      javax.jcr.RepositoryException