Class JsonPackageSrc


  • public class JsonPackageSrc
    extends Object
    Will contain a deserialized JSON package of a template, "src" part.

    To generate a JSON package from plain templates using gulp, see RosaeNLG Packager

    Author:
    Ludan Stoecklé [email protected]
    • Constructor Detail

      • JsonPackageSrc

        public JsonPackageSrc​(org.json.JSONObject src)
        Constructor using a JSON object.
        Parameters:
        src - the JSON object containing the src part of the JSON package
    • Method Detail

      • getEntryTemplate

        public String getEntryTemplate()
        Returns the entry template.

        The entry template is the one that is indicated when compiling, and which can include other templates (in the same JSON package).

        Returns:
        String the name of the entry template
      • getCompileInfo

        public CompileInfo getCompileInfo()
        Getter on the compile options.
        Returns:
        CompileInfo
      • getTemplates

        public Map<String,​String> getTemplates()
        Getter on the template content.

        Key value where the key is the template name, and the value the content of the template.

        Returns:
        template name and template content map
      • getAutotest

        public Autotest getAutotest()
        Getter on the auto test part of the package.
        Returns:
        Autotest the auto test, if exists