Class XmlValueInstantiators

java.lang.Object
tools.jackson.databind.deser.ValueInstantiators.Base
tools.jackson.dataformat.xml.deser.XmlValueInstantiators
All Implemented Interfaces:
Serializable, tools.jackson.databind.deser.ValueInstantiators

public class XmlValueInstantiators extends tools.jackson.databind.deser.ValueInstantiators.Base implements Serializable
ValueInstantiators implementation that renames creator properties to match the names that XmlBeanDeserializerModifier.updateProperties(tools.jackson.databind.DeserializationConfig, tools.jackson.databind.BeanDescription.Supplier, java.util.List<tools.jackson.databind.introspect.BeanPropertyDefinition>) will give to the corresponding property definitions.

This is needed because updateProperties() renames property definitions (e.g., @JacksonXmlText properties to "", wrapped collections to their wrapper name), but creator parameters retain their original names. Without this renaming, BeanDeserializerFactory.addBeanProps() cannot link property definitions to creator parameters.

Since:
3.2
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface tools.jackson.databind.deser.ValueInstantiators

    tools.jackson.databind.deser.ValueInstantiators.Base
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    XmlValueInstantiators(String nameForTextValue)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    tools.jackson.databind.deser.ValueInstantiator
    modifyValueInstantiator(tools.jackson.databind.DeserializationConfig config, tools.jackson.databind.BeanDescription.Supplier beanDescRef, tools.jackson.databind.deser.ValueInstantiator defaultInstantiator)
     

    Methods inherited from class tools.jackson.databind.deser.ValueInstantiators.Base

    findValueInstantiator

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • _cfgNameForTextValue

      protected final String _cfgNameForTextValue
  • Constructor Details

    • XmlValueInstantiators

      public XmlValueInstantiators(String nameForTextValue)
  • Method Details

    • modifyValueInstantiator

      public tools.jackson.databind.deser.ValueInstantiator modifyValueInstantiator(tools.jackson.databind.DeserializationConfig config, tools.jackson.databind.BeanDescription.Supplier beanDescRef, tools.jackson.databind.deser.ValueInstantiator defaultInstantiator)
      Specified by:
      modifyValueInstantiator in interface tools.jackson.databind.deser.ValueInstantiators