Class ModifierCompositeSpec
java.lang.Object
com.bazaarvoice.jolt.modifier.spec.ModifierSpec
com.bazaarvoice.jolt.modifier.spec.ModifierCompositeSpec
- All Implemented Interfaces:
BaseSpec
,OrderedCompositeSpec
Composite spec is non-leaf level spec that contains one or many child specs and processes
them based on a pre-determined execution strategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<ModifierSpec> private static final ComputedKeysComparator
private final ExecutionStrategy
private final Map
<String, ModifierSpec> private final DataType
Fields inherited from class com.bazaarvoice.jolt.modifier.spec.ModifierSpec
checkValue, opMode, pathElement, TRAVERSAL_BUILDER
-
Constructor Summary
ConstructorsConstructorDescriptionModifierCompositeSpec
(String key, Map<String, Object> spec, OpMode opMode, TemplatrSpecBuilder specBuilder) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyElement
(String inputKey, Optional<Object> inputOptional, MatchedElement thisLevel, WalkedPath walkedPath, Map<String, Object> context) Templatr specific override that is used in BaseSpec#apply(...) The name is changed for easy identification during debuggingMethods inherited from class com.bazaarvoice.jolt.modifier.spec.ModifierSpec
apply, getPathElement, setData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.bazaarvoice.jolt.common.spec.BaseSpec
apply, getPathElement
-
Field Details
-
orderMap
-
computedKeysComparator
-
literalChildren
-
computedChildren
-
executionStrategy
-
specDataType
-
-
Constructor Details
-
ModifierCompositeSpec
-
-
Method Details
-
applyElement
public void applyElement(String inputKey, Optional<Object> inputOptional, MatchedElement thisLevel, WalkedPath walkedPath, Map<String, Object> context) Description copied from class:ModifierSpec
Templatr specific override that is used in BaseSpec#apply(...) The name is changed for easy identification during debugging- Specified by:
applyElement
in classModifierSpec
-
getLiteralChildren
- Specified by:
getLiteralChildren
in interfaceOrderedCompositeSpec
-
getComputedChildren
- Specified by:
getComputedChildren
in interfaceOrderedCompositeSpec
-
determineExecutionStrategy
- Specified by:
determineExecutionStrategy
in interfaceOrderedCompositeSpec
-