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 ComputedKeysComparatorprivate final ExecutionStrategyprivate final Map<String, ModifierSpec> private final DataTypeFields inherited from class ModifierSpec
checkValue, opMode, pathElement, TRAVERSAL_BUILDER -
Constructor Summary
ConstructorsConstructorDescriptionModifierCompositeSpec(String key, Map<String, Object> spec, OpMode opMode, TemplatrSpecBuilder specBuilder) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyElement(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 ModifierSpec
apply, getPathElement, setDataMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:ModifierSpecTemplatr specific override that is used in BaseSpec#apply(...) The name is changed for easy identification during debugging- Specified by:
applyElementin classModifierSpec
-
getLiteralChildren
- Specified by:
getLiteralChildrenin interfaceOrderedCompositeSpec
-
getComputedChildren
- Specified by:
getComputedChildrenin interfaceOrderedCompositeSpec
-
determineExecutionStrategy
- Specified by:
determineExecutionStrategyin interfaceOrderedCompositeSpec
-