Class TypeJsonVisitor
java.lang.Object
jodd.json.TypeJsonVisitor
- Direct Known Subclasses:
BeanSerializer
Type's property visitor that follows JSON include/excludes rules.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected intprotected final booleanprotected final JsonContextprotected final Classprotected final TypeData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonProperty(String propertyName, jodd.introspector.PropertyDescriptor propertyDescriptor, boolean isTransient) Invoked on each property.protected abstract voidonSerializableProperty(String propertyName, jodd.introspector.PropertyDescriptor propertyDescriptor) Invoked on serializable properties, that have passed all the rules.voidvisit()Visits a type.
-
Field Details
-
jsonContext
-
declared
protected final boolean declared -
classMetadataName
-
type
-
count
protected int count -
typeData
-
-
Constructor Details
-
TypeJsonVisitor
-
-
Method Details
-
visit
public void visit()Visits a type. -
onProperty
protected void onProperty(String propertyName, jodd.introspector.PropertyDescriptor propertyDescriptor, boolean isTransient) Invoked on each property. Properties are getting matched against the rules. If property passes all the rules, it will be processed inonSerializableProperty(String, jodd.introspector.PropertyDescriptor). -
onSerializableProperty
protected abstract void onSerializableProperty(String propertyName, jodd.introspector.PropertyDescriptor propertyDescriptor) Invoked on serializable properties, that have passed all the rules. Property descriptor may benullin special case when class meta data name is used.
-