StdTypeResolverBuilder; needed so that
type id property name can be modified as necessary to make it legal
XML element or attribute name.Note
Since 2.17, property name cleansing only applied to default
names (like "@class" and "@type") but not to explicitly
specified ones (where caller presumably knows what to do).
| Modifier and Type | Class and Description |
|---|---|
| protected static class | |
| protected static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | _propName(String propName, JsonTypeInfo.
Overrides tools.
|
| protected static String | decodeXmlClassName(String className)
Helper method for decoding "XML safe" Java class name back into actual class name |
| protected static String | encodeXmlClassName(String className)
Helper method for encoding regular Java class name in form that can be used as XML element name. |
| protected TypeIdResolver | idResolver(DatabindContext ctxt, JavaType baseType, PolymorphicTypeValidator subtypeValidator, Collection<NamedType> subtypes, boolean forSer, boolean forDeser)
Overrides tools. Helper method that will either return configured custom type id resolver, or construct a standard resolver given configuration. |
| XmlTypeResolverBuilder | back to summary |
|---|---|
| public XmlTypeResolverBuilder(JsonTypeInfo. | |
| _propName | back to summary |
|---|---|
| protected String _propName(String propName, JsonTypeInfo. Overrides tools.
| |
| decodeXmlClassName | back to summary |
|---|---|
| protected static String decodeXmlClassName(String className) Helper method for decoding "XML safe" Java class name back into actual class name | |
| encodeXmlClassName | back to summary |
|---|---|
| protected static String encodeXmlClassName(String className) Helper method for encoding regular Java class name in form that can be used as XML element name. | |
| idResolver | back to summary |
|---|---|
| protected TypeIdResolver idResolver(DatabindContext ctxt, JavaType baseType, PolymorphicTypeValidator subtypeValidator, Collection<NamedType> subtypes, boolean forSer, boolean forDeser) Overrides tools. Doc from tools. Helper method that will either return configured custom type id resolver, or construct a standard resolver given configuration.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | XmlClassNameIdResolver(JavaType baseType, Collection<NamedType> subtypes, PolymorphicTypeValidator ptv)
|
| Modifier and Type | Method and Description |
|---|---|
| public String | idFromValue(DatabindContext ctxt, Object value)
Overrides tools. Implements tools. Method called to serialize type of the type of given value as a String to include in serialized JSON content. |
| public JavaType | typeFromId(DatabindContext ctxt, String id)
Overrides tools. Implements tools. Method called to resolve type from given type identifier. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tools. | |
| XmlClassNameIdResolver | back to summary |
|---|---|
| public XmlClassNameIdResolver(JavaType baseType, Collection<NamedType> subtypes, PolymorphicTypeValidator ptv) | |
| idFromValue | back to summary |
|---|---|
| public String idFromValue(DatabindContext ctxt, Object value) Overrides tools. Implements tools. Doc from tools. Method called to serialize type of the type of given value as a String to include in serialized JSON content.
| |
| typeFromId | back to summary |
|---|---|
| public JavaType typeFromId(DatabindContext ctxt, String id) throws JacksonException Overrides tools. Implements tools. Doc from tools. Method called to resolve type from given type identifier.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | XmlMinimalClassNameIdResolver(JavaType baseType, Collection<NamedType> subtypes, PolymorphicTypeValidator ptv)
|
| Modifier and Type | Method and Description |
|---|---|
| public String | idFromValue(DatabindContext ctxt, Object value)
Overrides tools. Implements tools. Method called to serialize type of the type of given value as a String to include in serialized JSON content. |
| public JavaType | typeFromId(DatabindContext ctxt, String id)
Overrides tools. Implements tools. Method called to resolve type from given type identifier. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tools. | |
| XmlMinimalClassNameIdResolver | back to summary |
|---|---|
| public XmlMinimalClassNameIdResolver(JavaType baseType, Collection<NamedType> subtypes, PolymorphicTypeValidator ptv) | |
| idFromValue | back to summary |
|---|---|
| public String idFromValue(DatabindContext ctxt, Object value) Overrides tools. Implements tools. Doc from tools. Method called to serialize type of the type of given value as a String to include in serialized JSON content.
| |
| typeFromId | back to summary |
|---|---|
| public JavaType typeFromId(DatabindContext ctxt, String id) throws JacksonException Overrides tools. Implements tools. Doc from tools. Method called to resolve type from given type identifier.
| |