Class GroovySystemDataGroup
- java.lang.Object
-
- groovy.lang.GroovyObjectSupport
-
- de.uplanet.lucy.server.scripting.groovy.GroovySystemDataGroup
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
@Scriptable public final class GroovySystemDataGroup extends groovy.lang.GroovyObjectSupport
-
-
Constructor Summary
Constructors Constructor Description GroovySystemDataGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAt(String p_strKey)
Object
getValueByFieldGuid(String p_strFieldGuid)
Get the value of the given system data group field.IValueHolder<?>
getValueHolderByFieldGuid(String p_strFieldGuid)
Get the value of the given system data group field.boolean
hasValue(String p_strFieldGuid)
Check if a system data group value for the given field exists.
-
-
-
Method Detail
-
hasValue
public boolean hasValue(String p_strFieldGuid)
Check if a system data group value for the given field exists.- Parameters:
p_strFieldGuid
- The field GUID.- Returns:
true
if the system datagroup has a value, orfalse
otherwise.- Throws:
IllegalArgumentException
- If the given GUID is invalid or does not identify an existing data field.
-
getValueByFieldGuid
public Object getValueByFieldGuid(String p_strFieldGuid)
Get the value of the given system data group field.- Parameters:
p_strFieldGuid
- The field GUID.- Returns:
- The field value.
- Throws:
IllegalArgumentException
- If the given GUID is invalid or does not identify an existing data field.RuntimeException
- If there is no value for the given field, in which casehasValue(String)
isfalse
.
-
getValueHolderByFieldGuid
public IValueHolder<?> getValueHolderByFieldGuid(String p_strFieldGuid)
Get the value of the given system data group field.- Parameters:
p_strFieldGuid
- The field GUID.- Returns:
- The field value as a value holder.
- Throws:
IllegalArgumentException
- If the given GUID is invalid or does not identify an existing data field.RuntimeException
- If there is no value for the given field, in which casehasValue(String)
isfalse
.
-
-