Class Fragments


  • public class Fragments
    extends Object
    Class for providing support for Fragments. To know more about fragments use-case in document generation and document templates, please see the documentation
    • Constructor Detail

      • Fragments

        public Fragments()
        Creates a new Fragments instance
    • Method Detail

      • addFragment

        public void addFragment​(org.json.JSONObject fragment)
        To add JsonObject into the fragments list.
        Parameters:
        fragment - JSON Object to be added to fragments list
      • addFragments

        public void addFragments​(List<org.json.JSONObject> fragments)
        To add List of JsonObject into the fragments list.
        Parameters:
        fragments - List of JSON object to be added to fragments list
      • getFragmentsList

        public List<org.json.JSONObject> getFragmentsList()
        Returns the list of fragments.
        Returns:
        the list of fragments