Class POJOPropertiesCollector
java.lang.Object
org.codehaus.jackson.map.introspect.POJOPropertiesCollector
Helper class used for aggregating information about all possible
properties of a POJO.
- Since:
- 1.9
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AnnotationIntrospector
protected LinkedList<AnnotatedMethod>
protected LinkedList<AnnotatedMethod>
protected final AnnotatedClass
Low-level introspected class information (methods, fields etc)protected final MapperConfig<?>
Configuration settingsprotected LinkedList<POJOPropertyBuilder>
protected final boolean
True if introspection is done for serialization (giving precedence for serialization annotations), or not (false, deserialization)Lazily collected list of properties that can be implicitly ignored during serialization; only updated when collecting information for deserialization purposesAlternate set of property names that have been marked for explicit ignoral for deserialization: needed to deal with 1.x definition of ignorable with respect to "any setter" (see [JACKSON-313], [JACKSON-383])protected LinkedHashMap<Object,
AnnotatedMember> Lazily collected list of members that were annotated to indicate that they represent mutators for deserializer value injection.protected LinkedList<AnnotatedMethod>
Method(s) marked with 'JsonValue' annotationprotected final LinkedHashMap<String,
POJOPropertyBuilder> Set of logical property information collected so farprotected final JavaType
Type of POJO for which properties are being collected.protected final VisibilityChecker<?>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
POJOPropertiesCollector
(MapperConfig<?> config, boolean forSerialization, JavaType type, AnnotatedClass classDef) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Method for collecting basic information on constructor(s) foundprotected void
Method for collecting basic information on all fields foundprotected void
protected void
Method for collecting basic information on all fields foundprotected void
protected POJOPropertyBuilder
protected void
Method called to get rid of candidate properties that are marked as ignored, or that are not visible.protected void
protected void
_renameUsing
(PropertyNamingStrategy naming) protected void
collect()
Method that orchestrates collection activities, and needs to be called after creating the instance.MapperConfig<?>
protected Map<String,
POJOPropertyBuilder> getType()
protected void
reportProblem
(String msg)
-
Field Details
-
_config
Configuration settings -
_forSerialization
protected final boolean _forSerializationTrue if introspection is done for serialization (giving precedence for serialization annotations), or not (false, deserialization) -
_type
Type of POJO for which properties are being collected. -
_classDef
Low-level introspected class information (methods, fields etc) -
_visibilityChecker
-
_annotationIntrospector
-
_properties
Set of logical property information collected so far -
_creatorProperties
-
_anyGetters
-
_anySetters
-
_jsonValueGetters
Method(s) marked with 'JsonValue' annotation -
_ignoredPropertyNames
Lazily collected list of properties that can be implicitly ignored during serialization; only updated when collecting information for deserialization purposes -
_ignoredPropertyNamesForDeser
Alternate set of property names that have been marked for explicit ignoral for deserialization: needed to deal with 1.x definition of ignorable with respect to "any setter" (see [JACKSON-313], [JACKSON-383])- Since:
- 1.9.4
-
_injectables
Lazily collected list of members that were annotated to indicate that they represent mutators for deserializer value injection.
-
-
Constructor Details
-
POJOPropertiesCollector
protected POJOPropertiesCollector(MapperConfig<?> config, boolean forSerialization, JavaType type, AnnotatedClass classDef)
-
-
Method Details
-
getConfig
-
getType
-
getClassDef
-
getAnnotationIntrospector
-
getProperties
-
getInjectables
-
getJsonValueMethod
-
getAnyGetterMethod
-
getAnySetterMethod
-
getIgnoredPropertyNames
-
getIgnoredPropertyNamesForDeser
- Since:
- 1.9.4
-
getPropertyMap
-
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() -
_doAddInjectable
-
_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() -
_renameUsing
-
reportProblem
-
_property
-