|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.jackson.map.deser.BeanDeserializerBuilder
public class BeanDeserializerBuilder
Builder class used for aggregating deserialization information about
a POJO, in order to build a JsonDeserializer
for deserializing
intances.
Field Summary | |
---|---|
protected SettableAnyProperty |
_anySetter
Fallback setter used for handling any properties that are not mapped to regular setters. |
protected HashMap<String,SettableBeanProperty> |
_backRefProperties
Back-reference properties this bean contains (if any) |
protected BasicBeanDescription |
_beanDesc
|
protected CreatorContainer |
_creators
Set of creators (constructors, factory methods) that bean type has. |
protected HashSet<String> |
_ignorableProps
Set of names of properties that are recognized but are to be ignored for deserialization purposes (meaning no exception is thrown, value is just skipped). |
protected boolean |
_ignoreAllUnknown
Flag that can be set to ignore and skip unknown properties. |
protected HashMap<String,SettableBeanProperty> |
_properties
Properties to deserialize collected so far. |
Constructor Summary | |
---|---|
BeanDeserializerBuilder(BasicBeanDescription beanDesc)
|
Method Summary | |
---|---|
void |
addBackReferenceProperty(String referenceName,
SettableBeanProperty prop)
|
void |
addIgnorable(String propName)
Method that will add property name as one of properties that can be ignored if not recognized. |
void |
addOrReplaceProperty(SettableBeanProperty prop,
boolean allowOverride)
Method for adding a new property or replacing a property. |
void |
addProperty(SettableBeanProperty prop)
Method to add a property setter. |
JsonDeserializer<?> |
build(BeanProperty forProperty)
|
Iterator<SettableBeanProperty> |
getProperties()
Method that allows accessing all properties that this builder currently contains. |
boolean |
hasProperty(String propertyName)
|
SettableBeanProperty |
removeProperty(String name)
|
void |
setAnySetter(SettableAnyProperty s)
|
void |
setCreators(CreatorContainer creators)
|
void |
setIgnoreUnknownProperties(boolean ignore)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final BasicBeanDescription _beanDesc
protected final HashMap<String,SettableBeanProperty> _properties
protected HashMap<String,SettableBeanProperty> _backRefProperties
protected HashSet<String> _ignorableProps
protected CreatorContainer _creators
protected SettableAnyProperty _anySetter
protected boolean _ignoreAllUnknown
Constructor Detail |
---|
public BeanDeserializerBuilder(BasicBeanDescription beanDesc)
Method Detail |
---|
public void setCreators(CreatorContainer creators)
public void addOrReplaceProperty(SettableBeanProperty prop, boolean allowOverride)
public void addProperty(SettableBeanProperty prop)
IllegalArgumentException
.
public void addBackReferenceProperty(String referenceName, SettableBeanProperty prop)
public void addIgnorable(String propName)
public Iterator<SettableBeanProperty> getProperties()
public boolean hasProperty(String propertyName)
public SettableBeanProperty removeProperty(String name)
public void setAnySetter(SettableAnyProperty s)
public void setIgnoreUnknownProperties(boolean ignore)
public JsonDeserializer<?> build(BeanProperty forProperty)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |