/* * TestBean.java Created on May 3, 2001, 5:14 PM */ package nl.tudelft.dsol.introspection.beans; import java.awt.Color; import java.awt.Font; import java.io.Serializable; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; /** * @author (c) 2003 Delft University of Technology , Delft, the Netherlands
* Faculty of Technology, Policy and Management
* Department of System Engineering
* Main researcher : Dr. Ir. A. Verbraeck
* Assistant researchers Ir. P.H.M. Jacobs and Ir. N.A. Lang */ public class SubTestBean implements Serializable { /** */ private static final long serialVersionUID = 1L; /** Holds value of property firstProperty. */ private String firstProperty = "First ;-)"; /** Holds value of property secondProperty. */ private String secondProperty = "Second ;-)"; /** Holds value of property intProp. */ private int intProp = 1717; /** Holds value of property color. */ private Color color = Color.BLUE; /** Holds value of property font. */ private Font font; /** the logger./ */ private static Logger logger = LogManager.getLogger(SubTestBean.class); /** Creates new TestBean. */ public SubTestBean() { super(); } /** * Getter for property firstProperty. * @return Value of property firstProperty. */ public String getFirstProperty() { logger.info(this.firstProperty + "requested."); return this.firstProperty; } /** * Setter for property firstProperty. * @param firstProperty New value of property firstProperty. */ public void setFirstProperty(final String firstProperty) { logger.info(this.firstProperty + "set."); this.firstProperty = firstProperty; } /** * Getter for property secondProperty. * @return Value of property secondProperty. */ public String getSecondProperty() { logger.info(this.secondProperty + "requested."); return this.secondProperty; } /** * Setter for property secondProperty. * @param secondProperty New value of property secondProperty. */ public void setSecondProperty(final String secondProperty) { logger.info(this.secondProperty + "set."); this.secondProperty = secondProperty; } /** * Getter for property intProp. * @return Value of property intProp. */ public int getIntProp() { logger.info(this.intProp + "requested."); return this.intProp; } /** * Setter for property intProp. * @param intProp New value of property intProp. */ public void setIntProp(final int intProp) { logger.info(this.intProp + "set."); this.intProp = intProp; } /** * Getter for property color. * @return Value of property color. */ public Color getColor() { return this.color; } /** * Setter for property color. * @param color New value of property color. */ public void setColor(final Color color) { this.color = color; } /** * Getter for property font. * @return Value of property font. */ public Font getFont() { return this.font; } /** * Setter for property font. * @param font New value of property font. */ public void setFont(final Font font) { this.font = font; } /** {@inheritDoc} */ @Override public String toString() { return "" + this.getColor() + this.getFirstProperty() + this.getFont() + this.getIntProp() + this.getSecondProperty(); } }