Package org.qdl_lang.scripting
Class Scripts
- java.lang.Object
- 
- org.qdl_lang.vfs.FileEntryConstants
- 
- org.qdl_lang.scripting.Scripts
 
 
- 
 public class Scripts extends FileEntryConstants Utilities for converting a singleQDLScriptto or from JSON. If you need to work withScriptSets, then consultJSONScriptUtil.Created by Jeff Gaynor 
 on 2/5/20 at 11:06 AM
- 
- 
Field SummaryFields Modifier and Type Field Description static StringCODEIdentifies the JSON array of lines of codestatic StringEXEC_PHASEIdentifies a phase of execution where this may be invoked.static StringLANG_VERSIONThe version of the language this script is compatible with.static StringLANGUAGEThe language this script is written instatic StringRUNIdentifies a call to construct a script_load() command call.static StringSCRIPTIdentifies this objectstatic StringSCRIPT_VERSIONThe revision of this script.- 
Fields inherited from class org.qdl_lang.vfs.FileEntryConstantsCREATE_TIME, ID, LAST_MODIFIED, LENGTH
 
- 
 - 
Constructor SummaryConstructors Constructor Description Scripts()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static QDLScriptfromJSON(net.sf.json.JSONObject rawJSON)static voidmain(String[] args)static net.sf.json.JSONObjecttoJSON(StringBuffer script, edu.uiuc.ncsa.security.core.configuration.XProperties prop)Returns a script object of the form {"script" : {"key0" : "value0",..., "code":[lines]}} where the key and value pairs are information in the properties file.static net.sf.json.JSONObjecttoJSON(QDLScript script)
 
- 
- 
- 
Field Detail- 
CODEpublic static final String CODE Identifies the JSON array of lines of code- See Also:
- Constant Field Values
 
 - 
RUNpublic static final String RUN Identifies a call to construct a script_load() command call. Note that scripts are loaded in to the current environment and run because on the server, the environment has been initialized. If we were to use script_run, then none of the state after the call would be available to the scripting engine.- See Also:
- Constant Field Values
 
 - 
SCRIPTpublic static final String SCRIPT Identifies this object- See Also:
- Constant Field Values
 
 - 
EXEC_PHASEpublic static final String EXEC_PHASE Identifies a phase of execution where this may be invoked. The phases are defined on the server, this merely provides a place to put it- See Also:
- Constant Field Values
 
 - 
LANG_VERSIONpublic static final String LANG_VERSION The version of the language this script is compatible with.- See Also:
- Constant Field Values
 
 - 
SCRIPT_VERSIONpublic static final String SCRIPT_VERSION The revision of this script.- See Also:
- Constant Field Values
 
 - 
LANGUAGEpublic static final String LANGUAGE The language this script is written in- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
toJSONpublic static net.sf.json.JSONObject toJSON(StringBuffer script, edu.uiuc.ncsa.security.core.configuration.XProperties prop) Returns a script object of the form {"script" : {"key0" : "value0",..., "code":[lines]}} where the key and value pairs are information in the properties file.- Parameters:
- script-
- prop-
- Returns:
 
 - 
toJSONpublic static net.sf.json.JSONObject toJSON(QDLScript script) 
 - 
fromJSONpublic static QDLScript fromJSON(net.sf.json.JSONObject rawJSON) 
 - 
mainpublic static void main(String[] args) 
 
- 
 
-