StdTypeResolverBuilder; needed so that
type id property name can be modified as necessary to make it legal
XML element or attribute name.
| 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 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. |
| public StdTypeResolverBuilder | init(JsonTypeInfo.
Which type metadata is used idType,(optional) Custom type id resolver used, if any idRes)Overrides com. Implements com. |
| public StdTypeResolverBuilder | init(JsonTypeInfo.
Configuration settings to apply. settings,Overrides com. Overrides default com. Note This method is abstract in Jackson 3.0, at the moment of writing. |
| public StdTypeResolverBuilder | typeProperty(String
Name of JSON property to use for including
type information typeIdPropName)Overrides com. Implements com. |
| XmlTypeResolverBuilder | back to summary |
|---|---|
| public XmlTypeResolverBuilder() | |
| XmlTypeResolverBuilder | back to summary |
|---|---|
| public XmlTypeResolverBuilder(JsonTypeInfo. | |
| 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.
| |
| 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.
| |
| init | back to summary |
|---|---|
| public StdTypeResolverBuilder init(JsonTypeInfo. Overrides com. Overrides default com. Doc from com. Initialization method that is called right after constructing the builder instance, in cases where information could not be passed directly (for example when instantiated for an annotation) Note This method is abstract in Jackson 3.0, at the moment of writing.
| |
| 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).
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | idFromValue(Object value)
Overrides com. Implements com. |
| public JavaType | typeFromId(DatabindContext context, String id)
Overrides com. Implements 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.
| |
| 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. |
| public JavaType | typeFromId(DatabindContext context, String id)
Overrides com. Implements 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.
| |