/*
 * Created on 2004-3-15
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package workflow.wfmc.xpdl.event;
/**
 * @author zosatapo
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class EventObject implements java.io.Serializable
{
	/**
	    * The object on which the Event initially occurred.
	    */
	protected transient Object source;
	/**
	 * Constructs a prototypical Event.
	 *
	 * @param    source    The object on which the Event initially occurred.
	 */
	public EventObject(Object source)
	{
		if (source == null)
		{
      throw new IllegalArgumentException("null source");
    }
		this.source = source;
	}
	/**
	 * The object on which the Event initially occurred.
	 *
	 * @return   The object on which the Event initially occurred.
	 */
	public Object getSource()
	{
		return source;
	}
	/**
	 * Returns a String representation of this EventObject.
	 *
	 * @return  A a String representation of this EventObject.
	 */
	public String toString()
	{
		return getClass().getName() + "[source=" + source + "]";
	}
}
