com.fasterxml.jackson.databind.deser.impl

Class PropertyValueBuffer

  • java.lang.Object
    • com.fasterxml.jackson.databind.deser.impl.PropertyValueBuffer


  • public final class PropertyValueBuffer
    extends Object
    Simple container used for temporarily buffering a set of PropertyValues. Using during construction of beans (and Maps) that use Creators, and hence need buffering before instance (that will have properties to assign values to) is constructed.
    • Field Detail

      • _creatorParameters

        protected final Object[] _creatorParameters
        Buffer used for storing creator parameters for constructing instance
    • Method Detail

      • getParameters

        protected final Object[] getParameters(Object[] defaults)
        Parameters:
        defaults - If any of parameters requires nulls to be replaced with a non-null object (usually primitive types), this is a non-null array that has such replacement values (and nulls for cases where nulls are ok)
      • readIdProperty

        public boolean readIdProperty(String propName)
                               throws IOException
        Helper method called to see if given non-creator property is the "id property"; and if so, handle appropriately.
        Throws:
        IOException
        Since:
        2.1
      • isComplete

        public boolean isComplete()
      • assignParameter

        public boolean assignParameter(int index,
                              Object value)
        Returns:
        True if we have received all creator parameters
      • bufferMapProperty

        public void bufferMapProperty(Object key,
                             Object value)

Copyright © 2012-2015 FasterXML. All Rights Reserved.