Class GroovyParameter
- java.lang.Object
-
- groovy.lang.GroovyObjectSupport
-
- de.uplanet.lucy.server.businesslogic.util.scriptable.GroovyParameter
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
@Scriptable public class GroovyParameter extends groovy.lang.GroovyObjectSupportIn a workflow environment: g_parameter
-
-
Constructor Summary
Constructors Constructor Description GroovyParameter(IBinding p_ctx)GroovyParameter(IProcessingContext p_ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsParameter(String p_strKey)Objectget(String p_strKey)Returns the value of a parameter.Objectget(String p_strKey, Object p_fallback)Returns the value of a parameter.ObjectgetAt(String p_strKey)ObjectgetProperty(String p_strKey)voidputAt(String p_strKey, Object p_value)Deprecated.DO ABSOLUTELY NOT USE THIS METHOD!voidsetProperty(String p_strKey, Object p_value)
-
-
-
Constructor Detail
-
GroovyParameter
public GroovyParameter(IProcessingContext p_ctx)
-
GroovyParameter
public GroovyParameter(IBinding p_ctx)
-
-
Method Detail
-
get
public Object get(String p_strKey)
Returns the value of a parameter.- Parameters:
p_strKey- The parameter name- Returns:
- The parameter value or
nullif no parameter found or no value was set.
-
get
public Object get(String p_strKey, Object p_fallback)
Returns the value of a parameter.- Parameters:
p_strKey- The parameter namep_fallback- The fallback value. Will returned when no parameter found or the parameter value isnull.- Returns:
- The parameter value or the given fallback value for a not existing or an
nullparameter value.
-
containsParameter
public boolean containsParameter(String p_strKey)
- Parameters:
p_strKey- The parameter name- Returns:
- Returns
trueif an parameter with the given name exists otherwisefalse
-
putAt
@Deprecated public void putAt(String p_strKey, Object p_value)
Deprecated.DO ABSOLUTELY NOT USE THIS METHOD!
-
-