Package org.rosaenlg.lib
Class JsonPackage
- java.lang.Object
-
- org.rosaenlg.lib.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 Summary
Constructors Constructor Description JsonPackage(String jsonPackageAsString)
Constructor using a JSON string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getInitialPackage()
Returns the initial value of the template, as a String.JsonPackageSrc
getSrc()
Returns the template src.String
getTemplateId()
Returns the template ID.
-
-
-
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
-
-