org.exparity.beans.BeanVisitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of exparity-bean Show documentation
Show all versions of exparity-bean Show documentation
A Java library of bean utilities for manipulating and inspecting Java classes implementing the Java Beans standard
package org.exparity.beans;
/**
* A callback interface which is fired for each property found by {@link BeanUtils#visit(Object, BeanVisitor)}
*
* @author Stewart Bissett
*/
public interface BeanVisitor {
/**
* Callback fired for each {@link BeanProperty} found on an object
*
* @param property the property being visited
* @param current the object currently being visited
* @param path a dot notation path of the properties navigated to get to this property
* @param stack a stack of the objects that have been visited to get to the current object. The latest object is last in the array.
*/
public void visit(final BeanProperty property, final Object current, final BeanPropertyPath path, final Object[] stack);
}