Class JsonPackage


  • public class JsonPackage
    extends Object
    Will contain a deserialized JSON package of a template.

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

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

      • JsonPackage

        public JsonPackage​(String jsonPackageAsString)
        Constructor using a JSON string.
        Parameters:
        jsonPackageAsString - the string containing the JSON package
        Throws:
        org.everit.json.schema.ValidationException - if the JSON schema is not respected
    • Method Detail

      • getTemplateId

        public String getTemplateId()
        Returns the template ID.
        Returns:
        String template ID
      • getSrc

        public JsonPackageSrc getSrc()
        Returns the template src.
        Returns:
        JsonPackageSrc template src
      • getInitialPackage

        public String getInitialPackage()
        Returns the initial value of the template, as a String.
        Returns:
        String the initial template