Module io.helidon.json.binding
Package io.helidon.json.binding
Annotation Interface Json.Polymorphic
- Enclosing class:
Json
-
Optional Element Summary
Optional Elements
-
Element Details
-
key
String keyKey used for keeping the alias information. This key is used as a JSON property name. Default value is@type.- Returns:
- JSON property name
- Default:
"@type"
-
value
Class<?> valueThe default implementation/extending class to be used when alias is not provided. The default valueObjectis intended as a "not specified" marker. In that case, no default implementation/extending class will be used and an exception will be thrown instead.- Returns:
- the default implementation/extending class of the annotated type.
- Default:
java.lang.Object.class
-