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 | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | _propName(String propName, JsonTypeInfo.
Overrides com.
|
| 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(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. |
| XmlTypeResolverBuilder | back to summary |
|---|---|
| public XmlTypeResolverBuilder() | |
| XmlTypeResolverBuilder | back to summary |
|---|---|
| public XmlTypeResolverBuilder(JsonTypeInfo. | |
| _propName | back to summary |
|---|---|
| protected String _propName(String propName, JsonTypeInfo. Overrides com.
| |
| 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(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.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | idFromValue(Object value)
Overrides com. Implements com. Method called to serialize type of the type of given value as a String to include in serialized JSON content. |
| public JavaType | typeFromId(DatabindContext context, String id)
Overrides com. Implements com. Method called to resolve type from given type identifier. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| XmlClassNameIdResolver | back to summary |
|---|---|
| public XmlClassNameIdResolver(JavaType baseType, TypeFactory typeFactory, PolymorphicTypeValidator ptv) | |
| idFromValue | back to summary |
|---|---|
| public String idFromValue(Object value) Overrides com. Implements com. Doc from com. 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 context, String id) throws IOException Overrides com. Implements com. Doc from com. 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, TypeFactory typeFactory, PolymorphicTypeValidator ptv)
|
| Modifier and Type | Method and Description |
|---|---|
| public String | idFromValue(Object value)
Overrides com. Implements com. Method called to serialize type of the type of given value as a String to include in serialized JSON content. |
| public JavaType | typeFromId(DatabindContext context, String id)
Overrides com. Implements com. Method called to resolve type from given type identifier. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| XmlMinimalClassNameIdResolver | back to summary |
|---|---|
| public XmlMinimalClassNameIdResolver(JavaType baseType, TypeFactory typeFactory, PolymorphicTypeValidator ptv) | |
| idFromValue | back to summary |
|---|---|
| public String idFromValue(Object value) Overrides com. Implements com. Doc from com. 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 context, String id) throws IOException Overrides com. Implements com. Doc from com. Method called to resolve type from given type identifier.
| |