com.bazaarvoice.jolt.shiftr
public class ShiftrTraversr extends SimpleTraversr
| Constructor and Description |
|---|
ShiftrTraversr(String humanPath) |
| Modifier and Type | Method and Description |
|---|---|
Object |
handleFinalSet(TraversalStep traversalStep,
Object tree,
String key,
Object data)
Do a Shift style insert :
1) if there is no data "there", then just set it
2) if there is already a list "there", just add the data to the list
3) if there something other than a list there, grab it and stuff it and the data into a list
and overwrite what is there with a list.
|
handleIntermediateGetpublic ShiftrTraversr(String humanPath)
public Object handleFinalSet(TraversalStep traversalStep, Object tree, String key, Object data)
handleFinalSet in class SimpleTraversrCopyright © 2014. All Rights Reserved.