Class PropertyBuilder

java.lang.Object
com.fasterxml.jackson.databind.ser.PropertyBuilder

public class PropertyBuilder extends Object
Helper class for BeanSerializerFactory that is used to construct BeanPropertyWriter instances. Can be sub-classed to change behavior.
  • Field Details

    • _config

      protected final SerializationConfig _config
    • _beanDesc

      protected final BeanDescription _beanDesc
    • _annotationIntrospector

      protected final AnnotationIntrospector _annotationIntrospector
    • _defaultBean

      protected Object _defaultBean
      If a property has serialization inclusion value of JsonInclude.Include.NON_DEFAULT, we may need to know the default value of the bean, to know if property value equals default one.

      NOTE: only used if enclosing class defines NON_DEFAULT, but NOT if it is the global default OR per-property override.

    • _defaultInclusion

      protected final com.fasterxml.jackson.annotation.JsonInclude.Value _defaultInclusion
      Default inclusion mode for properties of the POJO for which properties are collected; possibly overridden on per-property basis. Combines global inclusion defaults and per-type (annotation and type-override) inclusion overrides.
    • _useRealPropertyDefaults

      protected final boolean _useRealPropertyDefaults
      Marker flag used to indicate that "real" default values are to be used for properties, as per per-type value inclusion of type NON_DEFAULT
      Since:
      2.8
  • Constructor Details

  • Method Details