public final class CustomWrapperConditionHolder extends Object
CustomWrapperCondition and its representation as a
Map<CustomWrapperFieldExpression, Object>. This is a simplified version
of the condition defined by the CustomWrapperCondition instance, available
to the users for convenience. For a CustomWrapperCondition to be available as
a Map, it must comply with the following requirements:
CustomWrapperCondition is either a simple condition or an AND condition
which encapsulates either simple conditions or AND conditions.
CustomWrapperCondition must
comply with this pattern: FIELD = value.
getConditionMap(boolean) (with true as a parameter)
to obtain a Map even if the CustomWrapperCondition does not comply
with the explained requirements. Note that, in this case, information loss may occur.| Constructor and Description |
|---|
CustomWrapperConditionHolder(CustomWrapperCondition complexCondition)
Creates an instance of
CustomWrapperConditionHolder encapsulating
a condition and generates its Map<CustomWrapperFieldExpression, Object>
version. |
| Modifier and Type | Method and Description |
|---|---|
CustomWrapperCondition |
getComplexCondition() |
Map<CustomWrapperFieldExpression,Object> |
getConditionMap() |
Map<CustomWrapperFieldExpression,Object> |
getConditionMap(boolean force) |
public CustomWrapperConditionHolder(CustomWrapperCondition complexCondition)
CustomWrapperConditionHolder encapsulating
a condition and generates its Map<CustomWrapperFieldExpression, Object>
version.Users do not need to instantiate this class.
complexCondition - the encapsulated conditionpublic CustomWrapperCondition getComplexCondition()
CustomWrapperCondition.public Map<CustomWrapperFieldExpression,Object> getConditionMap()
Map version of the encapsulated CustomWrapperCondition,
or null if the condition does not comply with the requirements
(see CustomWrapperConditionHolder).public Map<CustomWrapperFieldExpression,Object> getConditionMap(boolean force)
force - true if the conversion is going to be forced, false otherwise.
Note that if this parameter is true, the returned Map may not
be equivalent to the encapsulated CustomWrapperCondition.Map version of the encapsulated CustomWrapperCondition,
or null if the condition does not comply with the requirements
(see CustomWrapperConditionHolder), unless force
is set to true.Copyright © 2024 Denodo Technologies. All rights reserved.