Class GroovyBinding
java.lang.Object
groovy.lang.GroovyObjectSupport
de.uplanet.lucy.server.businesslogic.util.scriptable.GroovyBinding
- All Implemented Interfaces:
groovy.lang.GroovyObject
@Scriptable
public class GroovyBinding
extends groovy.lang.GroovyObjectSupport
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a value of the given binding.Returns the value of the binding.getProperty
(String p_strKey) boolean
isAvailable
(String p_strKey) void
void
setProperty
(String p_strKey, Object p_value) Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClass
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface groovy.lang.GroovyObject
invokeMethod
-
Constructor Details
-
GroovyBinding
public GroovyBinding(de.uplanet.lucy.server.binding.IBinding p_binding)
-
-
Method Details
-
get
Returns a value of the given binding.- Parameters:
p_strKey
- The binding key.- Returns:
- The value or
null
if no value found for the binding.
-
get
Returns the value of the binding.- Parameters:
p_strKey
- The binding key.p_fallback
- The fallback value. Will returned when no value found or the binding value isnull
.- Returns:
- The binding value or the given fallback value for a not
existing or an
null
binding value.
-
isAvailable
- Parameters:
p_strKey
- The binding key.- Returns:
- Returns
true
if an binding value exists otherwisefalse
.
-
getProperty
-
setProperty
- Throws:
UnsupportedOperationException
- Since the binding is read-only.
-
getAt
-
putAt
- Throws:
UnsupportedOperationException
- Since the binding is read-only.
-