@Retention(value=RUNTIME) @Target(value=TYPE) public @interface DataObject
JsonObject
List
setter type declares a multi valued property, otherwise it declares
a single valued property.
An adder is a method prefixed by add
, its purpose is to declare a List
of properties.
An adder declares a multi valued property, mapped to the JsonArray
type. An adder
and a multi valued setter of the same property name are naturally compatible and is encouraged.
Properties types can be:
JsonObject
List
of aboveCopyright © 2015. All Rights Reserved.