Class AutoBeanVisitor


  • public class AutoBeanVisitor
    extends java.lang.Object
    Allows traversal of an AutoBean object graph.
    • Constructor Detail

      • AutoBeanVisitor

        public AutoBeanVisitor()
    • Method Detail

      • endVisitCollectionProperty

        public void endVisitCollectionProperty​(java.lang.String propertyName,
                                               AutoBean<java.util.Collection<?>> value,
                                               AutoBeanVisitor.CollectionPropertyContext ctx)
        Called after visiting a reference property.
        Parameters:
        propertyName - the property name, as a String
        value - the property value
        ctx - a PropertyContext
      • endVisitMapProperty

        public void endVisitMapProperty​(java.lang.String propertyName,
                                        AutoBean<java.util.Map<?,​?>> value,
                                        AutoBeanVisitor.MapPropertyContext ctx)
        Called after visiting a reference property.
        Parameters:
        propertyName - the property name, as a String
        value - the property value
        ctx - a PropertyContext
      • endVisitReferenceProperty

        public void endVisitReferenceProperty​(java.lang.String propertyName,
                                              AutoBean<?> value,
                                              AutoBeanVisitor.PropertyContext ctx)
        Called after visiting a reference property.
        Parameters:
        propertyName - the property name, as a String
        value - the property value
        ctx - a PropertyContext
      • endVisitValueProperty

        public void endVisitValueProperty​(java.lang.String propertyName,
                                          java.lang.Object value,
                                          AutoBeanVisitor.PropertyContext ctx)
        Called after visiting a value property.
        Parameters:
        propertyName - the property name, as a String
        value - the property value
        ctx - a PropertyContext
      • visitCollectionProperty

        public 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.
        Parameters:
        propertyName - the property name, as a String
        value - the property value
        ctx - a PropertyContext
      • visitMapProperty

        public 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.
        Parameters:
        propertyName - the property name, as a String
        value - the property value
        ctx - a PropertyContext
      • visitReferenceProperty

        public 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.
        Parameters:
        propertyName - the property name, as a String
        value - the property value
        ctx - a PropertyContext
      • visitValueProperty

        public boolean visitValueProperty​(java.lang.String propertyName,
                                          java.lang.Object value,
                                          AutoBeanVisitor.PropertyContext ctx)
        TODO: document.
        Parameters:
        propertyName - the property name, as a String
        value - the property value
        ctx - a PropertyContext