|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.jackson.map.ser.BeanSerializerBuilder
public class BeanSerializerBuilder
Builder class used for aggregating deserialization information about
a POJO, in order to build a JsonSerializer
for serializing
intances.
Main reason for using separate builder class is that this makes it easier
to make actual serializer class fully immutable.
Field Summary | |
---|---|
protected AnyGetterWriter |
_anyGetter
Writer used for "any getter" properties, if any. |
protected BasicBeanDescription |
_beanDesc
|
protected BeanPropertyWriter[] |
_filteredProperties
Optional array of filtered property writers; if null, no view-based filtering is performed. |
protected Object |
_filterId
Id of the property filter to use for POJO, if any. |
protected List<BeanPropertyWriter> |
_properties
Bean properties, in order of serialization |
Constructor Summary | |
---|---|
|
BeanSerializerBuilder(BasicBeanDescription beanDesc)
|
protected |
BeanSerializerBuilder(BeanSerializerBuilder src)
Copy-constructor that may be used for sub-classing |
Method Summary | |
---|---|
JsonSerializer<?> |
build()
Method called to create BeanSerializer instance with
all accumulated information. |
BeanSerializer |
createDummy()
Factory method for constructing an "empty" serializer; one that outputs no properties (but handles JSON objects properly, including type information) |
BasicBeanDescription |
getBeanDescription()
|
BeanPropertyWriter[] |
getFilteredProperties()
|
List<BeanPropertyWriter> |
getProperties()
|
void |
setAnyGetter(AnyGetterWriter anyGetter)
|
void |
setFilteredProperties(BeanPropertyWriter[] properties)
|
void |
setFilterId(Object filterId)
|
void |
setProperties(List<BeanPropertyWriter> properties)
|
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 List<BeanPropertyWriter> _properties
protected BeanPropertyWriter[] _filteredProperties
protected AnyGetterWriter _anyGetter
protected Object _filterId
Constructor Detail |
---|
public BeanSerializerBuilder(BasicBeanDescription beanDesc)
protected BeanSerializerBuilder(BeanSerializerBuilder src)
Method Detail |
---|
public BasicBeanDescription getBeanDescription()
public List<BeanPropertyWriter> getProperties()
public BeanPropertyWriter[] getFilteredProperties()
public void setProperties(List<BeanPropertyWriter> properties)
public void setFilteredProperties(BeanPropertyWriter[] properties)
public void setAnyGetter(AnyGetterWriter anyGetter)
public void setFilterId(Object filterId)
public JsonSerializer<?> build()
BeanSerializer
instance with
all accumulated information.
public BeanSerializer createDummy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |