package nl.tudelft.dsol.introspection; import nl.tudelft.dsol.introspection.beans.SubTestBean2; import nl.tudelft.simulation.introspection.Property; import nl.tudelft.simulation.introspection.beans.BeanIntrospector; import nl.tudelft.simulation.logger.Logger; /** * A test program for the JavaBean introspection implementation. *

* (c) copyright 2002-2005-2004 Delft University of Technology , the * Netherlands.
* See for project information www.simulation.tudelft.nl
* License of use: Lesser General Public License (LGPL) , no * warranty. * @author Niels Lang Peter Jacobs * @version 1.1 Apr 15, 2004 * @since 1.5 */ public final class IntrodpectionBeansTest { /** * constructs a new PTestBeans. */ private IntrodpectionBeansTest() { super(); // unreachable code; } /** * executes the PTestBeans * @param args the commandline arguments */ public static void main(final String[] args) { Property[] props = (new BeanIntrospector()).getProperties(new SubTestBean2()); for (int i = 0; i < props.length; i++) { Logger.info(IntrodpectionBeansTest.class, "main", "Prop name: " + props[i].getName()); Logger.info(IntrodpectionBeansTest.class, "main", "Prop class: " + props[i].getType()); Logger.info(IntrodpectionBeansTest.class, "main", "Prop value: " + props[i].getValue()); } } }