StdTypeResolverBuilder specifically used with
Default Typing.
Composition/sub-classing gets quite tricky here: ideally we would just
extend XmlTypeResolverBuilder but unfortunately inheritance hierarchy
does not allow this.
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected TypeIdResolver | idResolver(MapperConfig<?> config, JavaType baseType, PolymorphicTypeValidator subtypeValidator, Collection<NamedType> subtypes, boolean forSer, boolean forDeser)
Overrides com. Helper method that will either return configured custom type id resolver, or construct a standard resolver given configuration. |
| public StdTypeResolverBuilder | init(JsonTypeInfo.
Which type metadata is used idType,(optional) Custom type id resolver used, if any idRes)Overrides com. Implements com. Initialization method that is called right after constructing the builder instance. |
| public StdTypeResolverBuilder | typeProperty(String
Name of JSON property to use for including
type information typeIdPropName)Overrides com. Implements com. Method for constructing an instance with specified type property name (property name to use for type id when using "as-property" inclusion). |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| DefaultingXmlTypeResolverBuilder | back to summary |
|---|---|
| public DefaultingXmlTypeResolverBuilder(ObjectMapper. | |
| idResolver | back to summary |
|---|---|
| protected TypeIdResolver idResolver(MapperConfig<?> config, JavaType baseType, PolymorphicTypeValidator subtypeValidator, Collection<NamedType> subtypes, boolean forSer, boolean forDeser) Overrides com. Doc from com. Helper method that will either return configured custom type id resolver, or construct a standard resolver given configuration.
| |
| init | back to summary |
|---|---|
| public StdTypeResolverBuilder init(JsonTypeInfo. Overrides com. Implements com. Doc from com. Initialization method that is called right after constructing the builder instance.
| |
| typeProperty | back to summary |
|---|---|
| public StdTypeResolverBuilder typeProperty(String typeIdPropName) Overrides com. Implements com. Doc from com. Method for constructing an instance with specified type property name (property name to use for type id when using "as-property" inclusion).
| |