I would like to define a shift spec for a single Person, as complex as needed, and then apply that on all Persons in the tree. The actual transformations can be arbitrarily complex.
The solution in #1114 with recursiveReplacement does not use a shift spec for every Person leave in the tree, it requires programming every change in Java, right?
Suppose this is the input, consisting of nested Persons, which can be arbitrarily deep:
How to transform that with a complex spec acting per Person? For instance, change "Name" into "FirstName" and concatenate "Hobbies" ?
I would like to define a
shift
spec for a single Person, as complex as needed, and then apply that on all Persons in the tree. The actual transformations can be arbitrarily complex.The solution in #1114 with
recursiveReplacement
does not use ashift
spec for every Person leave in the tree, it requires programming every change in Java, right?