Annotation Interface Yaml


Annotation for customizing YAML serialization and parsing behavior on classes, methods, and fields.

Can be used in the following locations:

  • Marshalled classes/methods/fields.

Currently a marker annotation with no members; it establishes the per-format annotation surface (see @YamlApply) so that members can be added without API changes.

Example:

@Yaml public class MyBean { public String name; }

See Also: