public class EvaluationLevelConverter extends Object
Constructor and Description |
---|
EvaluationLevelConverter(ModelInstance modelInstance,
ModelProviderClientService modelProviderService)
Creates a new instance.
|
EvaluationLevelConverter(RuntimeToPersistentConverter converter)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
ClosureHolder |
closureInLevel(String level,
ClosureHolder closureHolder)
Returns closure holder in the required evaluation level.
|
static Context |
contextInLevel(String level,
Context context,
ModelProviderClientService modelProviderService)
Returns context for the specified level.
|
Context |
contextInLevel(String level,
long contextId)
Returns context for the specified level.
|
ExecutionContext |
executionContextInLevel(String level,
ExecutionContext executionContext)
Returns an execution context for an specified evaluation level.
|
protected ModelInstance |
getModelInstance() |
protected ModelProviderClientService |
getModelProviderService() |
ReadOnlyRecordHolder |
readOnlyRecordInTheLevel(String level,
RecordHolder recordHolder)
Returns read only record that corresponds to the record on the specified level.
|
Object |
runtimeObjectInLevel(String level,
Object runtimeObject,
Type type)
Returns a runtime object for a specified level.
|
Value |
valueInLevel(String level,
Value value)
Returns an evaluation value for an original value.
|
public EvaluationLevelConverter(RuntimeToPersistentConverter converter)
converter
- public EvaluationLevelConverter(ModelInstance modelInstance, ModelProviderClientService modelProviderService)
modelInstance
- modelProviderService
- protected ModelInstance getModelInstance()
protected ModelProviderClientService getModelProviderService()
public static Context contextInLevel(String level, Context context, ModelProviderClientService modelProviderService)
level
- context
- public Context contextInLevel(String level, long contextId)
level
- contextId
- public ExecutionContext executionContextInLevel(String level, ExecutionContext executionContext)
level
- executionContext
- public Value valueInLevel(String level, Value value)
level
- value
- public Object runtimeObjectInLevel(String level, Object runtimeObject, Type type)
level
- runtimeObject
- type
- public ClosureHolder closureInLevel(String level, ClosureHolder closureHolder)
level
- closureHolder
- public ReadOnlyRecordHolder readOnlyRecordInTheLevel(String level, RecordHolder recordHolder)
level
- recordHolder
- Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.