public class EvaluationLevelConverter extends Object
Constructor and Description |
---|
EvaluationLevelConverter(ModelInstance modelInstance,
ModelProvider modelProvider)
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,
ModelProvider modelProvider)
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 ModelProvider |
getModelProvider() |
static Namespace |
namespaceInLevel(String level,
Namespace namespace,
ModelProvider modelProvider)
Returns a namespace for an specified evaluation level.
|
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, ModelProvider modelProvider)
modelInstance
- modelProvider
- protected ModelInstance getModelInstance()
protected ModelProvider getModelProvider()
public static Context contextInLevel(String level, Context context, ModelProvider modelProvider)
level
- context
- modelProvider
- public Context contextInLevel(String level, long contextId)
level
- contextId
- public ExecutionContext executionContextInLevel(String level, ExecutionContext executionContext)
level
- executionContext
- public static Namespace namespaceInLevel(String level, Namespace namespace, ModelProvider modelProvider)
level
- namespace
- modelProvider
- 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-2020 Whitestein Technologies. All Rights Reserved.