Package sonia.scm.util
Class JsonMerger.MergeStage
java.lang.Object
sonia.scm.util.JsonMerger.MergeStage
- Enclosing class:
- JsonMerger
-
Method Summary
Modifier and TypeMethodDescriptionmergeWithJson(com.fasterxml.jackson.databind.JsonNode updateNode) Merge json node with main nodemergeWithObject(Object object) Merge object with main nodecom.fasterxml.jackson.databind.JsonNodeReturns the merged json node<T> JsonMerger.ToObjectStage<T>Creates a specific object merger which can apply logic like validation after the actual merge.
-
Method Details
-
mergeWithObject
Merge object with main node- Parameters:
object- object which will be transformed to a json node in order to be merged with the main node- Returns:
- this merge builder
-
mergeWithJson
Merge json node with main node- Parameters:
updateNode- json node with data which should be applied to main node- Returns:
- this merge builder
-
toJsonNode
public com.fasterxml.jackson.databind.JsonNode toJsonNode()Returns the merged json node- Returns:
- merged json node
-
toObject
Creates a specific object merger which can apply logic like validation after the actual merge.- Parameters:
clazz- class to which the output should be transformed- Returns:
- object merger
-