1 package org.fax4j; 2 3 import java.util.EventObject; 4 5 /** 6 * Base class for all fax4j events. 7 * 8 * @author Sagie Gur-Ari 9 * @version 1.0 10 * @since 0.40.5 11 */ 12 public abstract class AbstractFaxEvent extends EventObject { 13 /** The fax job */ 14 private final transient FaxJob FAX_JOB; 15 /** Default serialization UID */ 16 private static final long serialVersionUID = 1L; 17 18 /** 19 * This is the class constructor. 20 * 21 * @param faxJob 22 * The fax job 23 */ 24 public AbstractFaxEvent(FaxJob faxJob) { 25 super(faxJob); 26 27 // get fax job 28 this.FAX_JOB = faxJob; 29 } 30 31 /** 32 * This function returns the fax job. 33 * 34 * @return The fax job 35 */ 36 public final FaxJob getFaxJob() { 37 return this.FAX_JOB; 38 } 39 }