Interface MCRWCMSSectionProvider

All Superinterfaces:
MCRWCMSJSONProvider<Element,com.google.gson.JsonArray>
All Known Implementing Classes:
MCRWCMSDefaultSectionProvider

public interface MCRWCMSSectionProvider extends MCRWCMSJSONProvider<Element,com.google.gson.JsonArray>
Author:
Matthias Eichner
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJSON(com.google.gson.JsonArray jsonSection)
     
    com.google.gson.JsonArray
    toJSON(Element object)
    Converts a MyCoRe Webpage to a json array.
  • Field Details

  • Method Details

    • fromJSON

      Element fromJSON(com.google.gson.JsonArray jsonSection)
      Specified by:
      fromJSON in interface MCRWCMSJSONProvider<Element,com.google.gson.JsonArray>
    • toJSON

      com.google.gson.JsonArray toJSON(Element object)
      Converts a MyCoRe Webpage to a json array. The array contains all the section elements of the webpage including their content.

      [
      {title: "title of section", lang: "de", data: "<xml>content of section</xml>"},
      {title: "title of section 2", lang: "en", data: "<xml>content of section 2</xml>"}
      ]

      Specified by:
      toJSON in interface MCRWCMSJSONProvider<Element,com.google.gson.JsonArray>