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

org.docx4j.events.EventFinished Maven / Gradle / Ivy

Go to download

docx4j is a library which helps you to work with the Office Open XML file format as used in docx documents, pptx presentations, and xlsx spreadsheets.

There is a newer version: 11.5.0
Show newest version
package org.docx4j.events;


public class EventFinished extends Docx4jEvent {

	private StartEvent started;
	public StartEvent getStartEvent() {
		return started;
	}
	
	public EventFinished(StartEvent started) {
		super( started.getJob(),   started.getPkgIdentifier(),  started.getProcessStep());
		this.started = started;
	}
	
	/**
	 * Use this to signal the end of a Job.
	 * 
	 * @param job
	 * @param eventType
	 */
	public EventFinished(JobIdentifier job) {
		super( job);
	}

	/**
	 * Use this to signal the end of work on a specific pkg in a job.
	 * 
	 * @param job
	 * @param eventType
	 */
	public EventFinished(JobIdentifier job,  PackageIdentifier pkgIdentifier) {
		super( job,   pkgIdentifier);
	}
	
	/**
	 * Use this to signal the end of work on a specific pkg,
	 * where you didn't define an overall job.
	 * 
	 * @param job
	 * @param eventType
	 */
	public EventFinished(PackageIdentifier pkgIdentifier) { 
		super(  pkgIdentifier);
	}
	
	/**
	 * Use this to signal the end of a process step,
	 * where you didn't define an overall job.
	 * 
	 * @param job
	 * @param eventType
	 */
	public EventFinished(PackageIdentifier pkgIdentifier, ProcessStep processStep) {
		super( pkgIdentifier,  processStep);
	}
	
	/**
	 * Use this to signal the end of a process step,
	 * on some pkg in some overall job.
	 * 
	 * @param job
	 * @param eventType
	 */
	public EventFinished(JobIdentifier job,  PackageIdentifier pkgIdentifier, ProcessStep processStep) {
		
		super( job,   pkgIdentifier,  processStep);
	}		
	
	// Should the result of a job be available???
	
//	private Object result;
//	public Object getResult() {
//		return result;
//	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy