| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | PropertyBasedCreator.
Simple override of standard |
| Modifier and Type | Field and Description |
|---|---|
| protected final SettableBeanProperty[] | _propertiesInOrder
Array that contains properties that match creator properties |
| protected final int | _propertyCount
Number of properties: usually same as size of |
| protected final HashMap | _propertyLookup
Map that contains property objects for either constructor or factory method (whichever one is null: one property for each parameter for that one), keyed by logical property name |
| protected final ValueInstantiator | _valueInstantiator
Helper object that knows how to actually construct the instance by invoking creator method with buffered arguments. |
| Access | Constructor and Description |
|---|---|
| protected | PropertyBasedCreator(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] creatorProps, boolean caseInsensitive, boolean addAliases)
|
| protected | PropertyBasedCreator(PropertyBasedCreator base, HashMap<String, SettableBeanProperty> propertyLookup, SettableBeanProperty[] allProperties)
|
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public static PropertyBasedCreator | construct(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] srcCreatorProps, BeanPropertyMap allProperties)
Factory method used for building actual instances to be used with POJOS: resolves deserializers, checks for "null values". |
| public static PropertyBasedCreator | construct(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] srcCreatorProps, boolean caseInsensitive)
Factory method used for building actual instances to be used with types OTHER than POJOs. |
| public SettableBeanProperty | |
| public SettableBeanProperty | |
| public Collection | |
| public PropertyBasedCreator | renameAll(DeserializationContext ctxt, NameTransformer transformer)
Mutant factory method for constructing a map where the names of all properties
are transformed using the given |
| public PropertyValueBuffer | startBuilding(JsonParser p, DeserializationContext ctxt, ObjectIdReader oir)
Method called when starting to build a bean instance. |
| public PropertyValueBuffer | startBuildingWithAnySetter(JsonParser p, DeserializationContext ctxt, ObjectIdReader oir, SettableAnyProperty anySetter)
Method called when starting to build a bean instance. |
| _propertiesInOrder | back to summary |
|---|---|
| protected final SettableBeanProperty[] _propertiesInOrder Array that contains properties that match creator properties | |
| _propertyCount | back to summary |
|---|---|
| protected final int _propertyCount Number of properties: usually same as size of | |
| _propertyLookup | back to summary |
|---|---|
| protected final HashMap<String, SettableBeanProperty> _propertyLookup Map that contains property objects for either constructor or factory method (whichever one is null: one property for each parameter for that one), keyed by logical property name | |
| _valueInstantiator | back to summary |
|---|---|
| protected final ValueInstantiator _valueInstantiator Helper object that knows how to actually construct the instance by invoking creator method with buffered arguments. | |
| PropertyBasedCreator | back to summary |
|---|---|
| protected PropertyBasedCreator(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] creatorProps, boolean caseInsensitive, boolean addAliases) | |
| PropertyBasedCreator | back to summary |
|---|---|
protected PropertyBasedCreator(PropertyBasedCreator base, HashMap<String, SettableBeanProperty> propertyLookup, SettableBeanProperty[] allProperties)
| |
| build | back to summary |
|---|---|
| public Object build(DeserializationContext ctxt, PropertyValueBuffer buffer) throws JacksonException | |
| construct | back to summary |
|---|---|
| public static PropertyBasedCreator construct(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] srcCreatorProps, BeanPropertyMap allProperties) Factory method used for building actual instances to be used with POJOS: resolves deserializers, checks for "null values". | |
| construct | back to summary |
|---|---|
| public static PropertyBasedCreator construct(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] srcCreatorProps, boolean caseInsensitive) Factory method used for building actual instances to be used with types OTHER than POJOs. resolves deserializers and checks for "null values". | |
| findCreatorProperty | back to summary |
|---|---|
| public SettableBeanProperty findCreatorProperty(String name) | |
| findCreatorProperty | back to summary |
|---|---|
| public SettableBeanProperty findCreatorProperty(int propertyIndex) | |
| properties | back to summary |
|---|---|
| public Collection | |
| renameAll | back to summary |
|---|---|
| public PropertyBasedCreator renameAll(DeserializationContext ctxt, NameTransformer transformer) Mutant factory method for constructing a map where the names of all properties
are transformed using the given
| |
| startBuilding | back to summary |
|---|---|
| public PropertyValueBuffer startBuilding(JsonParser p, DeserializationContext ctxt, ObjectIdReader oir) Method called when starting to build a bean instance. | |
| startBuildingWithAnySetter | back to summary |
|---|---|
| public PropertyValueBuffer startBuildingWithAnySetter(JsonParser p, DeserializationContext ctxt, ObjectIdReader oir, SettableAnyProperty anySetter) Method called when starting to build a bean instance.
| |
java.util.HashMap to support
case-insensitive access to creator properties
| Modifier and Type | Field and Description |
|---|---|
| protected final Locale | _locale
Lower-casing can have Locale-specific minor variations. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static PropertyBasedCreator. | |
| public SettableBeanProperty | get(Object key0)
Overrides java. Implements java. Returns the value to which the specified key is mapped,
or |
| public SettableBeanProperty | put(String key, SettableBeanProperty value)
Overrides java. Implements java. Associates the specified value with the specified key in this map. |
| _locale | back to summary |
|---|---|
| protected final Locale _locale Lower-casing can have Locale-specific minor variations. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| CaseInsensitiveMap | back to summary |
|---|---|
| public CaseInsensitiveMap(Locale l) | |
| construct | back to summary |
|---|---|
| public static PropertyBasedCreator. | |
| get | back to summary |
|---|---|
| public SettableBeanProperty get(Object key0) Overrides java. Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
A return value of
| |
| put | back to summary |
|---|---|
| public SettableBeanProperty put(String key, SettableBeanProperty value) Overrides java. Implements java. Doc from java. Associates the specified value with the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced.
| |