Class ExpressionEvaluationContext
java.lang.Object
com.evolveum.midpoint.repo.common.expression.ExpressionEvaluationContext
Simple almost-DTO used to contain all the parameters of expression evaluation.
Designed to allow future compatible changes (addition of optional parameters).
- Author:
- semancik
-
Constructor Summary
ConstructorDescriptionExpressionEvaluationContext
(Collection<Source<?, ?>> sources, VariablesMap variables, String contextDescription, @NotNull Task task) -
Method Summary
Modifier and TypeMethodDescriptionSource<?,
?> @NotNull Collection<Source<?,
?>> getTask()
boolean
boolean
boolean
void
setAdditionalConvertor
(Function<Object, Object> additionalConvertor) Allows converting the raw values, possibly of various types, into the type conforming to the definition.void
setDefaultSource
(Source<?, ?> defaultSource) void
setExpressionEvaluatorProfile
(ExpressionEvaluatorProfile expressionEvaluatorProfile) void
setExpressionFactory
(ExpressionFactory expressionFactory) void
setExpressionProfile
(ExpressionProfile expressionProfile) void
setLocalContextDescription
(String localContextDescription) void
setMappingQName
(QName mappingQName) void
setSkipEvaluationMinus
(boolean skipEvaluationMinus) void
setSkipEvaluationPlus
(boolean skipEvaluationPlus) void
setValueMetadataComputer
(TransformationValueMetadataComputer valueMetadataComputer) void
setValuePolicySupplier
(ValuePolicySupplier valuePolicySupplier) void
setVariableProducer
(VariableProducer variableProducer) void
setVariables
(VariablesMap variables)
-
Constructor Details
-
ExpressionEvaluationContext
public ExpressionEvaluationContext(Collection<Source<?, ?>> sources, VariablesMap variables, String contextDescription, @NotNull @NotNull Task task)
-
-
Method Details
-
getSources
-
getDefaultSource
-
setDefaultSource
-
getVariables
-
setVariables
-
isSkipEvaluationPlus
public boolean isSkipEvaluationPlus() -
setSkipEvaluationPlus
public void setSkipEvaluationPlus(boolean skipEvaluationPlus) -
isSkipEvaluationMinus
public boolean isSkipEvaluationMinus() -
setSkipEvaluationMinus
public void setSkipEvaluationMinus(boolean skipEvaluationMinus) -
getExpressionProfile
-
setExpressionProfile
-
setExpressionEvaluatorProfile
-
getValuePolicySupplier
-
setValuePolicySupplier
-
getExpressionFactory
-
setExpressionFactory
-
getMappingQName
-
setMappingQName
-
getLocalContextDescription
-
setLocalContextDescription
-
getContextDescription
-
getTask
-
getAdditionalConvertor
-
setAdditionalConvertor
Allows converting the raw values, possibly of various types, into the type conforming to the definition. TODO: Shouldn't convertor go into makeExpression already? Is should not change for one expression like variables. This also causes troubles like -
getVariableProducer
-
setVariableProducer
-
getValueMetadataComputer
-
setValueMetadataComputer
-
hasDeltas
public boolean hasDeltas() -
shallowClone
-