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