Package adams.flow.rest
Class GroovyPlugin
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.rest.GroovyPlugin
-
- All Implemented Interfaces:
adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.QuickInfoSupporter,adams.core.scripting.FileBasedScripting,adams.core.scripting.FileBasedScriptingWithOptions,adams.core.SizeOfHandler,Serializable
public class GroovyPlugin extends adams.core.option.AbstractOptionHandler implements adams.core.scripting.FileBasedScriptingWithOptions, adams.core.QuickInfoSupporterWrapper for a REST plugin written in Groovy.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.core.io.PlaceholderFilem_ScriptFilethe script.protected Stringm_ScriptOptionsthe options for the script.
-
Constructor Summary
Constructors Constructor Description GroovyPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.StringgetQuickInfo()Returns a quick info about the actor, which will be displayed in the GUI.adams.core.io.PlaceholderFilegetScriptFile()Gets the script file.adams.core.base.BaseTextgetScriptOptions()Gets the script options.StringglobalInfo()Returns a string describing the object.ObjectloadPlugin(adams.flow.core.Actor context)Loads the Groovy REST plugin.StringscriptFileTipText()Returns the tip text for this property.StringscriptOptionsTipText()Returns the tip text for this property.voidsetScriptFile(adams.core.io.PlaceholderFile value)Sets the script file.voidsetScriptOptions(adams.core.base.BaseText value)Sets the script options.-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_ScriptFile
protected adams.core.io.PlaceholderFile m_ScriptFile
the script.
-
m_ScriptOptions
protected String m_ScriptOptions
the options for the script.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin classadams.core.option.AbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classadams.core.option.AbstractOptionHandler
-
getQuickInfo
public String getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI.- Specified by:
getQuickInfoin interfaceadams.core.QuickInfoSupporter- Returns:
- null if no info available, otherwise short string
-
setScriptFile
public void setScriptFile(adams.core.io.PlaceholderFile value)
Sets the script file.- Specified by:
setScriptFilein interfaceadams.core.scripting.FileBasedScripting- Parameters:
value- the script
-
getScriptFile
public adams.core.io.PlaceholderFile getScriptFile()
Gets the script file.- Specified by:
getScriptFilein interfaceadams.core.scripting.FileBasedScripting- Returns:
- the script
-
scriptFileTipText
public String scriptFileTipText()
Returns the tip text for this property.- Specified by:
scriptFileTipTextin interfaceadams.core.scripting.FileBasedScripting- Returns:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setScriptOptions
public void setScriptOptions(adams.core.base.BaseText value)
Sets the script options.- Specified by:
setScriptOptionsin interfaceadams.core.scripting.FileBasedScriptingWithOptions- Parameters:
value- the options
-
getScriptOptions
public adams.core.base.BaseText getScriptOptions()
Gets the script options.- Specified by:
getScriptOptionsin interfaceadams.core.scripting.FileBasedScriptingWithOptions- Returns:
- the options
-
scriptOptionsTipText
public String scriptOptionsTipText()
Returns the tip text for this property.- Specified by:
scriptOptionsTipTextin interfaceadams.core.scripting.FileBasedScriptingWithOptions- Returns:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
-