Package org.apache.johnzon.mapper
Annotation Type JohnzonVirtualObject
-
@Target(TYPE) @Retention(RUNTIME) @Inherited public @interface JohnzonVirtualObject
Example: @JohnzonVirtualObject(path = {"nested", "nested-again"}, field = { "a", "b" }) will generate {"nested":{"nested-again":{"a":"xxx", "b": "yyy"}}}
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description JohnzonVirtualObject.Field[]
fields
String[]
path
-
-
-
Element Detail
-
path
String[] path
- Returns:
- the virtual object(s) path.
-
-
-
fields
JohnzonVirtualObject.Field[] fields
- Returns:
- the list of fields to consider.
-
-