Package org.rosaenlg.lib
Class JsonPackageSrc
- java.lang.Object
-
- org.rosaenlg.lib.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 Summary
Constructors Constructor Description JsonPackageSrc(org.json.JSONObject src)
Constructor using a JSON object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Autotest
getAutotest()
Getter on the auto test part of the package.CompileInfo
getCompileInfo()
Getter on the compile options.String
getEntryTemplate()
Returns the entry template.Map<String,String>
getTemplates()
Getter on the template content.
-
-
-
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
-
-