Interface RuntimeClass
- 
- All Superinterfaces:
- RuntimeClassComp
 - All Known Subinterfaces:
- RuntimeObject
 
 public interface RuntimeClass extends RuntimeClassComp Runtime object type information
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description RWIterable<com.redwood.scheduler.api.scripting.ScriptingFunction>getBuiltInFunctions(SchedulerSession aSession)Returns available built in scripting functions, current session has access toRWIterable<com.redwood.scheduler.api.scripting.ScriptingVariable>getContextVariables(String aMemberName)For given member return the variables that can be used for the SchedulerEntity this RuntimeClass representsStringgetDescription()Get the description of the class as it is described in the model.RWIterable<String>getMembers()Obtain all available members for the object-typeRuntimeMemberTypegetMemberType(String name)Obtain the type information for the given member.RuntimeMemberTypegetMemberTypeString(String name)Obtain the String-specific type information for the given member of type String.StringgetObjectType()Returns the object type of this RuntimeClass (name of ObjectDefinition), e.g.RWIterable<com.redwood.scheduler.api.scripting.ScriptingFunction>getRELEntryPoints(SchedulerSession aSession)Return all entry points the current session has access toClass<? extends SchedulerEntity>getRuntimeClass()Return the actual SchedulerEntity class for this RuntimeClass.booleanhasMember(String name)Does the given member exist for the object-type.booleanisAuditable()Returns true if this class (object type) can be audited.booleanisAuditableAtLevel(AuditLevel level)Returns true if this class (object type) can be audited at given level.booleansupportsREL(String aMemberName)Returns true if given member for the SchedulerEntity this RuntimeClass represents suppors rel expressions.
 
- 
- 
- 
Method Detail- 
hasMemberboolean hasMember(String name) Does the given member exist for the object-type.- Parameters:
- name- The member name
- Returns:
- True if the member does exist
 
 - 
getMemberTypeRuntimeMemberType getMemberType(String name) Obtain the type information for the given member.- Parameters:
- name- The member name
- Returns:
- The member type information or null if the member not exist
 
 - 
getMemberTypeStringRuntimeMemberType getMemberTypeString(String name) Obtain the String-specific type information for the given member of type String.- Parameters:
- name- The member name
- Returns:
- The member type information if it exist or null if the member either does not exist or is not of type String
 
 - 
getMembersRWIterable<String> getMembers() Obtain all available members for the object-type- Specified by:
- getMembersin interface- RuntimeClassComp
- Returns:
- An iterator<String> containing all member names.
 
 - 
getRuntimeClassClass<? extends SchedulerEntity> getRuntimeClass() Return the actual SchedulerEntity class for this RuntimeClass. For example if this RuntimeClass represents JobDefinition, this will return JobDefinition.class (so the class of JobDefinition)- Returns:
- SchedulerEntityclass this RuntimeClass represents
 
 - 
getObjectTypeString getObjectType() Returns the object type of this RuntimeClass (name of ObjectDefinition), e.g. JobDefinition.- Returns:
- Object type
 
 - 
isAuditableboolean isAuditable() Returns true if this class (object type) can be audited.- Returns:
- True if auditable, false otherwise.
 
 - 
isAuditableAtLevelboolean isAuditableAtLevel(AuditLevel level) Returns true if this class (object type) can be audited at given level.- Parameters:
- level- Level of auditing
- Returns:
- True if auditable at given level, false otherwise.
 
 - 
getDescriptionString getDescription() Get the description of the class as it is described in the model.- Returns:
- the description
 
 - 
getContextVariablesRWIterable<com.redwood.scheduler.api.scripting.ScriptingVariable> getContextVariables(String aMemberName) For given member return the variables that can be used for the SchedulerEntity this RuntimeClass represents- Specified by:
- getContextVariablesin interface- RuntimeClassComp
- Parameters:
- aMemberName- Variable name
- Returns:
- Iterator<ScriptingVariable> (variables that can be used in a REL expression) or Empty Iterator (if aMember does not support REL).
 
 - 
supportsRELboolean supportsREL(String aMemberName) Returns true if given member for the SchedulerEntity this RuntimeClass represents suppors rel expressions.- Parameters:
- aMemberName-
- Returns:
- true if aMember supports REL expressions.
 
 - 
getBuiltInFunctionsRWIterable<com.redwood.scheduler.api.scripting.ScriptingFunction> getBuiltInFunctions(SchedulerSession aSession) Returns available built in scripting functions, current session has access to- Specified by:
- getBuiltInFunctionsin interface- RuntimeClassComp
- Parameters:
- aSession- Session to use
- Returns:
- Iterator<ScriptingVariable> with built in functions
 
 - 
getRELEntryPointsRWIterable<com.redwood.scheduler.api.scripting.ScriptingFunction> getRELEntryPoints(SchedulerSession aSession) Return all entry points the current session has access to- Specified by:
- getRELEntryPointsin interface- RuntimeClassComp
- Parameters:
- aSession- Session to use
- Returns:
- Iterator<ScriptingVariable> with functions taken from the RELEntryPoints that the user can see.
 
 
- 
 
-