Package org.docx4j.events
Class Docx4jEvent
java.lang.Object
org.docx4j.events.Docx4jEvent
- Direct Known Subclasses:
EventFinished,StartEvent
public abstract class Docx4jEvent
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Docx4jEvent(JobIdentifier job)Use this to signal the start or end of a Job.Docx4jEvent(JobIdentifier job, PackageIdentifier pkgIdentifier)Use this to signal the start or end of work on a specific pkg in a job.Docx4jEvent(JobIdentifier job, PackageIdentifier pkgIdentifier, ProcessStep processStep)Use this to signal the start or end of a process step, on some pkg in some overall job.Docx4jEvent(PackageIdentifier pkgIdentifier)Use this to signal the start or end of work on a specific pkg, where you didn't define an overall job.Docx4jEvent(PackageIdentifier pkgIdentifier, ProcessStep processStep)Use this to signal the start or end of a process step, where you didn't define an overall job. -
Method Summary
Modifier and Type Method Description JobIdentifiergetJob()PackageIdentifiergetPkgIdentifier()ProcessStepgetProcessStep()Retrieve the step in the process, if set.voidpublish()static java.lang.BooleanpublishAsynch()static voidsetEventNotifier(net.engio.mbassy.bus.MBassador<Docx4jEvent> bus)voidsetProcessStep(ProcessStep processStep)static voidsetPublishAsynch(java.lang.Boolean publishAsynch)
-
Constructor Details
-
Docx4jEvent
Use this to signal the start or end of a Job.- Parameters:
job-eventType-
-
Docx4jEvent
Use this to signal the start or end of work on a specific pkg in a job.- Parameters:
job-eventType-
-
Docx4jEvent
Use this to signal the start or end of work on a specific pkg, where you didn't define an overall job.- Parameters:
job-eventType-
-
Docx4jEvent
Use this to signal the start or end of a process step, where you didn't define an overall job.- Parameters:
job-eventType-
-
Docx4jEvent
Use this to signal the start or end of a process step, on some pkg in some overall job.- Parameters:
job-eventType-
-
-
Method Details
-
setEventNotifier
-
publishAsynch
public static java.lang.Boolean publishAsynch() -
setPublishAsynch
public static void setPublishAsynch(java.lang.Boolean publishAsynch) -
getPkgIdentifier
-
publish
public void publish() -
getJob
-
getProcessStep
Retrieve the step in the process, if set. You can create your own set of steps (for things which happen in your user code ie outside docx4j's source code) by implementing the ProcessStep interface.- Returns:
-
setProcessStep
-