public class AutoBeanVisitor
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
AutoBeanVisitor.CollectionPropertyContext
A PropertyContext that describes the parameterization of the Collection
being visited.
|
static interface |
AutoBeanVisitor.Context
Reserved for future expansion to avoid API breaks.
|
static interface |
AutoBeanVisitor.MapPropertyContext
A PropertyContext that describes the parameterization of the Map being
visited.
|
static class |
AutoBeanVisitor.ParameterizationVisitor
The ParameterizationVisitor provides access to more complete type
information than a simple class literal can provide.
|
static interface |
AutoBeanVisitor.PropertyContext
Allows properties to be reset.
|
Constructor and Description |
---|
AutoBeanVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
endVisit(AutoBean<?> bean,
AutoBeanVisitor.Context ctx)
Called after visiting an
AutoBean . |
void |
endVisitCollectionProperty(java.lang.String propertyName,
AutoBean<java.util.Collection<?>> value,
AutoBeanVisitor.CollectionPropertyContext ctx)
Called after visiting a reference property.
|
void |
endVisitMapProperty(java.lang.String propertyName,
AutoBean<java.util.Map<?,?>> value,
AutoBeanVisitor.MapPropertyContext ctx)
Called after visiting a reference property.
|
void |
endVisitReferenceProperty(java.lang.String propertyName,
AutoBean<?> value,
AutoBeanVisitor.PropertyContext ctx)
Called after visiting a reference property.
|
void |
endVisitValueProperty(java.lang.String propertyName,
java.lang.Object value,
AutoBeanVisitor.PropertyContext ctx)
Called after visiting a value property.
|
boolean |
visit(AutoBean<?> bean,
AutoBeanVisitor.Context ctx)
Called when visiting an
AutoBean . |
boolean |
visitCollectionProperty(java.lang.String propertyName,
AutoBean<java.util.Collection<?>> value,
AutoBeanVisitor.CollectionPropertyContext ctx)
Called every time, but
visit(AutoBean, Context) will be called for
the value only the first time it is encountered. |
boolean |
visitMapProperty(java.lang.String propertyName,
AutoBean<java.util.Map<?,?>> value,
AutoBeanVisitor.MapPropertyContext ctx)
Called every time, but
visit(AutoBean, Context) will be called for
the value only the first time it is encountered. |
boolean |
visitReferenceProperty(java.lang.String propertyName,
AutoBean<?> value,
AutoBeanVisitor.PropertyContext ctx)
Called every time, but
visit(AutoBean, Context) will be called for
the value only the first time it is encountered. |
boolean |
visitValueProperty(java.lang.String propertyName,
java.lang.Object value,
AutoBeanVisitor.PropertyContext ctx)
TODO: document.
|
public void endVisit(AutoBean<?> bean, AutoBeanVisitor.Context ctx)
AutoBean
.bean
- an AutoBean
ctx
- a Contextpublic void endVisitCollectionProperty(java.lang.String propertyName, AutoBean<java.util.Collection<?>> value, AutoBeanVisitor.CollectionPropertyContext ctx)
propertyName
- the property name, as a Stringvalue
- the property valuectx
- a PropertyContextpublic void endVisitMapProperty(java.lang.String propertyName, AutoBean<java.util.Map<?,?>> value, AutoBeanVisitor.MapPropertyContext ctx)
propertyName
- the property name, as a Stringvalue
- the property valuectx
- a PropertyContextpublic void endVisitReferenceProperty(java.lang.String propertyName, AutoBean<?> value, AutoBeanVisitor.PropertyContext ctx)
propertyName
- the property name, as a Stringvalue
- the property valuectx
- a PropertyContextpublic void endVisitValueProperty(java.lang.String propertyName, java.lang.Object value, AutoBeanVisitor.PropertyContext ctx)
propertyName
- the property name, as a Stringvalue
- the property valuectx
- a PropertyContextpublic boolean visit(AutoBean<?> bean, AutoBeanVisitor.Context ctx)
AutoBean
.bean
- an AutoBean
ctx
- a Contextpublic boolean visitCollectionProperty(java.lang.String propertyName, AutoBean<java.util.Collection<?>> value, AutoBeanVisitor.CollectionPropertyContext ctx)
visit(AutoBean, Context)
will be called for
the value only the first time it is encountered.propertyName
- the property name, as a Stringvalue
- the property valuectx
- a PropertyContextpublic boolean visitMapProperty(java.lang.String propertyName, AutoBean<java.util.Map<?,?>> value, AutoBeanVisitor.MapPropertyContext ctx)
visit(AutoBean, Context)
will be called for
the value only the first time it is encountered.propertyName
- the property name, as a Stringvalue
- the property valuectx
- a PropertyContextpublic boolean visitReferenceProperty(java.lang.String propertyName, AutoBean<?> value, AutoBeanVisitor.PropertyContext ctx)
visit(AutoBean, Context)
will be called for
the value only the first time it is encountered.propertyName
- the property name, as a Stringvalue
- the property valuectx
- a PropertyContextpublic boolean visitValueProperty(java.lang.String propertyName, java.lang.Object value, AutoBeanVisitor.PropertyContext ctx)
propertyName
- the property name, as a Stringvalue
- the property valuectx
- a PropertyContext