Class PropertyBuilder

    • Method Detail

      • getClassAnnotations

        public Annotations getClassAnnotations()
      • findSerializationType

        protected JavaType findSerializationType​(Annotated a,
                                                 boolean useStaticTyping,
                                                 JavaType declaredType)
        Method that will try to determine statically defined type of property being serialized, based on annotations (for overrides), and alternatively declared type (if static typing for serialization is enabled). If neither can be used (no annotations, dynamic typing), returns null.
      • getDefaultBean

        protected Object getDefaultBean()
      • getContainerValueChecker

        protected Object getContainerValueChecker​(String propertyName,
                                                  JavaType propertyType)
        Helper method called to see if we need a comparator Object to check if values of a container (Collection, array) property should be suppressed. This is usually
        Parameters:
        propertyName - Name of property to handle
        propertyType - Declared type of values of the property to handle
        Returns:
        Object whose equals() method is called to check if given value is "empty Collection" value to suppress; or null if no such check should be done (declared type not Collection or array)
        Since:
        1.9
      • getEmptyValueChecker

        protected Object getEmptyValueChecker​(String propertyName,
                                              JavaType propertyType)
        Helper method called to see if we need a comparator Object to check if values of specified type are consider empty. If type has such concept, will build a comparator; otherwise return null, and in latter case, only null values are considered 'empty'.
        Parameters:
        propertyName - Name of property to handle
        propertyType - Declared type of values of the property to handle
        Returns:
        Object whose equals() method is called to check if given value is "empty Collection" value to suppress; or null if no such check should be done (declared type not Collection or array)
        Since:
        1.9