Class PropertyValueBuffer


  • public class PropertyValueBuffer
    extends java.lang.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.
    • Method Detail

      • hasParameter

        public final boolean hasParameter​(SettableBeanProperty prop)
        Returns true if the given property was seen in the JSON source by this buffer.
        Since:
        2.8
      • readIdProperty

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

        public java.lang.Object handleIdValue​(DeserializationContext ctxt,
                                              java.lang.Object bean)
                                       throws java.io.IOException
        Helper method called to handle Object Id value collected earlier, if any
        Throws:
        java.io.IOException
      • isComplete

        public boolean isComplete()
      • assignParameter

        public boolean assignParameter​(SettableBeanProperty prop,
                                       java.lang.Object value)
        Method called to buffer value for given property, as well as check whether we now have values for all (creator) properties that we expect to get values for.
        Returns:
        True if we have received all creator parameters
        Since:
        2.6
      • bufferProperty

        public void bufferProperty​(SettableBeanProperty prop,
                                   java.lang.Object value)
      • bufferAnyProperty

        public void bufferAnyProperty​(SettableAnyProperty prop,
                                      java.lang.String propName,
                                      java.lang.Object value)
      • bufferMapProperty

        public void bufferMapProperty​(java.lang.Object key,
                                      java.lang.Object value)