com.bazaarvoice.jolt.traversr.traversal
public class MapTraversalStep extends BaseTraversalStep<Map<String,Object>>
TraversalStep.Operationchild, traversr| Constructor and Description |
|---|
MapTraversalStep(Traversr traversr,
TraversalStep child) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Map<String,Object> map,
String key)
Return the data for the key from the provided tree object.
|
Class |
getStepType()
Return the Class of the Generic T, so that it can be used in an
"instanceof" style check.
|
Object |
newContainer()
Create a new mutable Map or List, suitable for this PathElement to traverse.
|
Object |
overwriteSet(Map<String,Object> map,
String key,
Object data)
Insert the data into the tree, overwriting any data that is there.
|
Object |
remove(Map<String,Object> map,
String key)
Remove and return the data for the key from the provided tree object.
|
getChild, traversepublic MapTraversalStep(Traversr traversr, TraversalStep child)
public Class getStepType()
TraversalSteppublic Object newContainer()
TraversalSteppublic Object get(Map<String,Object> map, String key)
TraversalSteppublic Object remove(Map<String,Object> map, String key)
TraversalStepCopyright © 2014. All Rights Reserved.