Package com.bazaarvoice.jolt.removr.spec
Class RemovrCompositeSpec
java.lang.Object
com.bazaarvoice.jolt.removr.spec.RemovrSpec
com.bazaarvoice.jolt.removr.spec.RemovrCompositeSpec
Removr Spec that has children. In a removr spec, whenever the RHS is a Map, we build a RemovrCompositeSpec
-
Field Summary
FieldsFields inherited from class com.bazaarvoice.jolt.removr.spec.RemovrSpec
pathElement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyToList
(List<Object> inputList) Build a list of indices to remove from the input list, using the pathElement from the Spec.applyToMap
(Map<String, Object> inputMap) Build a list of keys to remove from the input map, using the pathElement from the Spec.private void
processChildren
(List<RemovrSpec> children, Object subInput) Call our child nodes, build up the set of keys or indices to actually remove, and then remove them.Methods inherited from class com.bazaarvoice.jolt.removr.spec.RemovrSpec
getNonNegativeIntegerFromLiteralPathElement, parse
-
Field Details
-
allChildNodes
-
-
Constructor Details
-
RemovrCompositeSpec
-
-
Method Details
-
applyToMap
Description copied from class:RemovrSpec
Build a list of keys to remove from the input map, using the pathElement from the Spec.- Specified by:
applyToMap
in classRemovrSpec
- Returns:
- the keys to remove, otherwise empty List.
-
applyToList
Description copied from class:RemovrSpec
Build a list of indices to remove from the input list, using the pathElement from the Spec.- Specified by:
applyToList
in classRemovrSpec
- Returns:
- the indicies to remove, otherwise empty List.
-
processChildren
Call our child nodes, build up the set of keys or indices to actually remove, and then remove them.
-