Hello,
the procedure:
1) instruct SnakeYAML that a scalar which matches a specific regular expression shall use your specific tag
\d+% -> !my_divided_float
2) instruct SnakeYAML how to create your business object (float) from the scalar (String) with the specific tag
You may find more info in the documentation:
Search tests for method "Yaml.addImplicitResolver(String tag, Pattern regexp, String first)" to see more examples.
I think, this is similar to what what you want to achieve:
Cheers,
-
Andrey