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

uk.co.it.modular.beans.BeanVisitor Maven / Gradle / Ivy

Go to download

Utilities for manipulating and inspecting Java classes implementing the Java Beans standard

There is a newer version: 0.9.10
Show newest version
/*
 * Copyright (c) Modular IT Limited.
 */

package uk.co.it.modular.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 BeanPropertyInstance property, final Object current, final String path, final Object[] stack);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy