public class RemovrCompositeSpec extends RemovrSpec
Modifier and Type | Field and Description |
---|---|
private java.util.List<RemovrSpec> |
allChildNodes |
pathElement
Constructor and Description |
---|
RemovrCompositeSpec(java.lang.String rawKey,
java.util.Map<java.lang.String,java.lang.Object> spec) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Integer> |
applyToList(java.util.List<java.lang.Object> inputList)
Build a list of indices to remove from the input list, using the pathElement
from the Spec.
|
java.util.List<java.lang.String> |
applyToMap(java.util.Map<java.lang.String,java.lang.Object> inputMap)
Build a list of keys to remove from the input map, using the pathElement
from the Spec.
|
private void |
processChildren(java.util.List<RemovrSpec> children,
java.lang.Object subInput)
Call our child nodes, build up the set of keys or indices to actually remove, and then
remove them.
|
getNonNegativeIntegerFromLiteralPathElement, parse
private final java.util.List<RemovrSpec> allChildNodes
public RemovrCompositeSpec(java.lang.String rawKey, java.util.Map<java.lang.String,java.lang.Object> spec)
public java.util.List<java.lang.String> applyToMap(java.util.Map<java.lang.String,java.lang.Object> inputMap)
RemovrSpec
applyToMap
in class RemovrSpec
public java.util.List<java.lang.Integer> applyToList(java.util.List<java.lang.Object> inputList)
RemovrSpec
applyToList
in class RemovrSpec
private void processChildren(java.util.List<RemovrSpec> children, java.lang.Object subInput)