Interface RuntimeObject
-
- All Superinterfaces:
RuntimeClass,RuntimeClassComp
public interface RuntimeObject extends RuntimeClass
Runtime object instance information.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetMemberValue(String name)Get the member valueRuntimeListValuegetMemberValues(String name)Get the member collection value.booleansetMemberValue(String name, Object value)Will throw RunTimeException when: - RuntimeMemberClassCastException - when the value could not be cast to the expected ClassType.voidsetStrictMode(boolean value)In strict mode RunTimeExceptions may be thrown when calling setMemberValue() or getMemberValue(), such as: - RuntimeMemberClassCastException - RuntimeMemberDoesNotExistException In case strict mode is disabled, the above exceptions will be repressed.-
Methods inherited from interface com.redwood.scheduler.api.runtime.RuntimeClass
getBuiltInFunctions, getContextVariables, getDescription, getMembers, getMemberType, getMemberTypeString, getObjectType, getRELEntryPoints, getRuntimeClass, hasMember, isAuditable, isAuditableAtLevel, supportsREL
-
-
-
-
Method Detail
-
setMemberValue
boolean setMemberValue(String name, Object value)
Will throw RunTimeException when: - RuntimeMemberClassCastException - when the value could not be cast to the expected ClassType. Note: When strictMode is disabled, it will still return false on failure.- Parameters:
name- The member namevalue- The object value to set, which must be of the class-type described in RuntimeClass.getMemberType().- Returns:
- false if the value could not be set.
-
getMemberValue
Object getMemberValue(String name)
Get the member value- Parameters:
name- The member name- Returns:
- The member value
-
getMemberValues
RuntimeListValue getMemberValues(String name)
Get the member collection value. Note: Will also return a valid RuntimeListValue for non collection members.- Parameters:
name- The member name- Returns:
- The members collection value
-
setStrictMode
void setStrictMode(boolean value)
In strict mode RunTimeExceptions may be thrown when calling setMemberValue() or getMemberValue(), such as: - RuntimeMemberClassCastException - RuntimeMemberDoesNotExistException In case strict mode is disabled, the above exceptions will be repressed.- Parameters:
value- The strict mode status
-
-