Class BeanPropertyWriter


  • public final class BeanPropertyWriter
    extends java.lang.Object
    Simple container class used to contain information needed for serializing value of a single POJO property.
    Since:
    2.8
    • Field Summary

      Fields 
      Modifier and Type Field Description
      com.fasterxml.jackson.core.io.SerializedString name  
      int typeId  
    • Constructor Summary

      Constructors 
      Constructor Description
      BeanPropertyWriter​(int typeId, java.lang.String n, java.lang.reflect.Field f, java.lang.reflect.Method getter)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String _bean()  
      java.lang.Object getValueFor​(java.lang.Object bean)  
      BeanPropertyWriter withName​(java.lang.String newName)  
      • Methods inherited from class java.lang.Object

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

      • name

        public final com.fasterxml.jackson.core.io.SerializedString name
      • typeId

        public final int typeId
    • Constructor Detail

      • BeanPropertyWriter

        public BeanPropertyWriter​(int typeId,
                                  java.lang.String n,
                                  java.lang.reflect.Field f,
                                  java.lang.reflect.Method getter)
    • Method Detail

      • getValueFor

        public java.lang.Object getValueFor​(java.lang.Object bean)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • _bean

        protected java.lang.String _bean()