public class BeanSerializer extends TypeJsonVisitor
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
source |
classMetadataName, count, declared, jsonContext, type, typeData
Constructor and Description |
---|
BeanSerializer(JsonContext jsonContext,
java.lang.Object bean) |
Modifier and Type | Method and Description |
---|---|
protected void |
onSerializableProperty(java.lang.String propertyName,
java.lang.Class propertyType,
java.lang.Object value)
Invoked on serializable properties, that have passed all the rules.
|
protected void |
onSerializableProperty(java.lang.String propertyName,
PropertyDescriptor propertyDescriptor)
Reads property value and
serializes it . |
void |
serialize()
Serializes a bean.
|
onProperty, visit
public BeanSerializer(JsonContext jsonContext, java.lang.Object bean)
public void serialize()
protected final void onSerializableProperty(java.lang.String propertyName, PropertyDescriptor propertyDescriptor)
serializes it
.onSerializableProperty
in class TypeJsonVisitor
protected void onSerializableProperty(java.lang.String propertyName, java.lang.Class propertyType, java.lang.Object value)
null
for metadata class name property.Copyright © 2003-present Jodd Team