| Package | Description |
|---|---|
| com.bazaarvoice.jolt.shiftr | |
| com.bazaarvoice.jolt.traversr | |
| com.bazaarvoice.jolt.traversr.traversal |
| Modifier and Type | Method and Description |
|---|---|
Object |
ShiftrTraversr.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.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
SimpleTraversr.handleFinalSet(TraversalStep traversalStep,
Object tree,
String key,
Object data) |
abstract Object |
Traversr.handleFinalSet(TraversalStep traversalStep,
Object tree,
String key,
Object data)
Allow subclasses to control how "sets" are done, if/once the traversal has made it to the the last element.
|
Object |
SimpleTraversr.handleIntermediateGet(TraversalStep traversalStep,
Object tree,
String key,
TraversalStep.Operation op)
Only make a new instance of a container object for SET, if there is nothing "there".
|
abstract Object |
Traversr.handleIntermediateGet(TraversalStep traversalStep,
Object tree,
String key,
TraversalStep.Operation op)
Allow subclasses to control how gets are handled for intermediate traversals.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayTraversalStep
TraversalStep that expects to handle List objects.
|
class |
AutoExpandArrayTraversalStep
Subclass of ArrayTraversalStep that does not care about array index numbers.
|
class |
BaseTraversalStep<T> |
class |
MapTraversalStep
TraversalStep that expects to handle Map objects.
|
| Modifier and Type | Field and Description |
|---|---|
protected TraversalStep |
BaseTraversalStep.child |
| Modifier and Type | Method and Description |
|---|---|
TraversalStep |
BaseTraversalStep.getChild() |
TraversalStep |
TraversalStep.getChild() |
| Constructor and Description |
|---|
ArrayTraversalStep(Traversr traversr,
TraversalStep child) |
AutoExpandArrayTraversalStep(Traversr traversr,
TraversalStep child) |
BaseTraversalStep(Traversr traversr,
TraversalStep child) |
MapTraversalStep(Traversr traversr,
TraversalStep child) |
Copyright © 2014. All Rights Reserved.