Uses of Class
com.fasterxml.jackson.databind.jsontype.BasicPolymorphicTypeValidator.Builder
Packages that use BasicPolymorphicTypeValidator.Builder
Package
Description
Package that contains interfaces that define how to implement
functionality for dynamically resolving type during deserialization.
-
Uses of BasicPolymorphicTypeValidator.Builder in com.fasterxml.jackson.databind.jsontype
Methods in com.fasterxml.jackson.databind.jsontype that return BasicPolymorphicTypeValidator.BuilderModifier and TypeMethodDescriptionprotected BasicPolymorphicTypeValidator.Builder
BasicPolymorphicTypeValidator.Builder._appendBaseMatcher
(BasicPolymorphicTypeValidator.TypeMatcher matcher) protected BasicPolymorphicTypeValidator.Builder
BasicPolymorphicTypeValidator.Builder._appendSubClassMatcher
(BasicPolymorphicTypeValidator.TypeMatcher matcher) protected BasicPolymorphicTypeValidator.Builder
BasicPolymorphicTypeValidator.Builder._appendSubNameMatcher
(BasicPolymorphicTypeValidator.NameMatcher matcher) BasicPolymorphicTypeValidator.Builder.allowIfBaseType
(BasicPolymorphicTypeValidator.TypeMatcher matcher) Method for appending custom matcher called with base type: if matcher returnstrue
, all possible subtypes will be accepted; iffalse
, other matchers are applied.BasicPolymorphicTypeValidator.Builder.allowIfBaseType
(Class<?> baseOfBase) Method for appending matcher that will allow all subtypes in cases where nominal base type is specified class, or one of its subtypes.BasicPolymorphicTypeValidator.Builder.allowIfBaseType
(String prefixForBase) Method for appending matcher that will allow all subtypes in cases where nominal base type's class name starts with specific prefix.BasicPolymorphicTypeValidator.Builder.allowIfBaseType
(Pattern patternForBase) Method for appending matcher that will allow all subtypes in cases where nominal base type's class name matches givenPattern
For example, call toBasicPolymorphicTypeValidator.Builder.allowIfSubType
(BasicPolymorphicTypeValidator.TypeMatcher matcher) Method for appending custom matcher called with resolved subtype: if matcher returnstrue
, type will be accepted; iffalse
, other matchers are applied.BasicPolymorphicTypeValidator.Builder.allowIfSubType
(Class<?> subTypeBase) Method for appending matcher that will allow specific subtype (regardless of declared base type) if it issubTypeBase
or its subtype.BasicPolymorphicTypeValidator.Builder.allowIfSubType
(String prefixForSubType) Method for appending matcher that will allow specific subtype (regardless of declared base type) in cases where subclass name starts with specified prefix For example, call toBasicPolymorphicTypeValidator.Builder.allowIfSubType
(Pattern patternForSubType) Method for appending matcher that will allow specific subtype (regardless of declared base type) in cases where subclass name matches givenPattern
.BasicPolymorphicTypeValidator.Builder.allowIfSubTypeIsArray()
Method for appending matcher that will allow all subtypes that are Java arrays (regardless of element type).BasicPolymorphicTypeValidator.builder()
BasicPolymorphicTypeValidator.Builder.denyForExactBaseType
(Class<?> baseTypeToDeny) Method for appending matcher that will mark any polymorphic properties with exact specific class to be invalid.