Class 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 Detail

      • OrderedJsonReader

        public OrderedJsonReader()
    • Method Detail

      • writeChildren

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