com.fasterxml.jackson.databind.introspect

Class POJOPropertiesCollector

  • java.lang.Object
    • com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector


  • public class POJOPropertiesCollector
    extends Object
    Helper class used for aggregating information about all possible properties of a POJO.
    • Field Detail

      • _config

        protected final MapperConfig<?> _config
        Configuration settings
      • _forSerialization

        protected final boolean _forSerialization
        True if introspection is done for serialization (giving precedence for serialization annotations), or not (false, deserialization)
      • _type

        protected final JavaType _type
        Type of POJO for which properties are being collected.
      • _classDef

        protected final AnnotatedClass _classDef
        Low-level introspected class information (methods, fields etc)
      • _mutatorPrefix

        protected final String _mutatorPrefix
        Prefix used by auto-detected mutators ("setters"): usually "set", but differs for builder objects ("with" by default).
      • _ignoredPropertyNames

        protected HashSet<String> _ignoredPropertyNames
        Lazily collected list of properties that can be implicitly ignored during serialization; only updated when collecting information for deserialization purposes
      • _injectables

        protected LinkedHashMap<Object,AnnotatedMember> _injectables
        Lazily collected list of members that were annotated to indicate that they represent mutators for deserializer value injection.
    • Method Detail

      • getIgnoredPropertyNames

        public Set<String> getIgnoredPropertyNames()
      • getObjectIdInfo

        public ObjectIdInfo getObjectIdInfo()
        Accessor to find out whether type specified requires inclusion of Object Identifier.
      • findPOJOBuilderClass

        public Class<?> findPOJOBuilderClass()
        Method for finding Class to use as POJO builder, if any.
      • collect

        public POJOPropertiesCollector collect()
        Method that orchestrates collection activities, and needs to be called after creating the instance.
      • _sortProperties

        protected void _sortProperties()
      • _addFields

        protected void _addFields()
        Method for collecting basic information on all fields found
      • _addCreators

        protected void _addCreators()
        Method for collecting basic information on constructor(s) found
      • _addMethods

        protected void _addMethods()
        Method for collecting basic information on all fields found
      • _addInjectables

        protected void _addInjectables()
      • _removeUnwantedProperties

        protected void _removeUnwantedProperties()
        Method called to get rid of candidate properties that are marked as ignored, or that are not visible.
      • _renameProperties

        protected void _renameProperties()
      • _renameWithWrappers

        protected void _renameWithWrappers()
      • reportProblem

        protected void reportProblem(String msg)

Copyright © 2012-2014 FasterXML. All Rights Reserved.