All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.exparity.beans.BeanVisitor Maven / Gradle / Ivy

Go to download

A Java library of bean utilities for manipulating and inspecting Java classes implementing the Java Beans standard

There is a newer version: 1.0.3
Show newest version

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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy