marcusaram / snakeyaml

Automatically exported from code.google.com/p/snakeyaml
Apache License 2.0
1 stars 0 forks source link

improve JavaBean serialization into a YAML document (define order and skip some properties) #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1) define order. Order may be very informative: for instance ID or name are 
normally expected to be the first.
2) omit a JavaBean property:
 - skip empty collections
 - skip null
 - skip calculated bean properties

At the moment, org.yaml.snakeyaml.representer.Representer must be extended to 
achieve the goal.

Original issue reported on code.google.com by py4fun@gmail.com on 10 Nov 2009 at 11:11

GoogleCodeExporter commented 9 years ago
a possible solution is here http://code.google.com/p/snakeyaml/wiki/
Documentation#Dumping_a_custom_YAML_document

Original comment by py4fun@gmail.com on 18 Nov 2009 at 2:57