PolymorphicTypeValidator implementation used by with Avro's
polymorphic type handling. Does actually allow all subtypes because set of
allowed types is dictated by Avro Schema and not by arbitrary class names.
Note that use of validator in any other context, like with formats that allow arbitrary class names, would be unsafe.
| Modifier and Type | Field and Description |
|---|---|
| public static final AvroSubTypeValidator | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public PolymorphicTypeValidator. | validateBaseType(DatabindContext ctxt, JavaType baseType)
Overrides tools. Method called when a property with polymorphic value is encountered, and a
|
| public PolymorphicTypeValidator. | validateSubClassName(DatabindContext ctxt, JavaType baseType, String subClassName)
Overrides tools. Method called after intended class name for subtype has been read (and in case of minimal
class name, expanded to fully-qualified class name) but before attempt is made to
look up actual |
| public PolymorphicTypeValidator. | validateSubType(DatabindContext ctxt, JavaType baseType, JavaType subType)
Overrides tools. Method called after class name has been resolved to actual type, in cases where previous
call to |
| instance | back to summary |
|---|---|
| public static final AvroSubTypeValidator instance | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tools. | |
| AvroSubTypeValidator | back to summary |
|---|---|
| pack-priv AvroSubTypeValidator() | |
| validateBaseType | back to summary |
|---|---|
| public PolymorphicTypeValidator. Overrides tools. Doc from tools. Method called when a property with polymorphic value is encountered, and a
| |
| validateSubClassName | back to summary |
|---|---|
| public PolymorphicTypeValidator. Overrides tools. Doc from tools. Method called after intended class name for subtype has been read (and in case of minimal
class name, expanded to fully-qualified class name) but before attempt is made to
look up actual
Validator may also choose to indicate denial by throwing a
| |
| validateSubType | back to summary |
|---|---|
| public PolymorphicTypeValidator. Overrides tools. Doc from tools. Method called after class name has been resolved to actual type, in cases where previous
call to
Validator may also choose to indicate denial by throwing a
| |