Class Docx4jEvent

java.lang.Object
org.docx4j.events.Docx4jEvent
Direct Known Subclasses:
EventFinished, StartEvent

public abstract class Docx4jEvent extends Object
  • Constructor Details

    • Docx4jEvent

      public Docx4jEvent(JobIdentifier job)
      Use this to signal the start or end of a Job.
      Parameters:
      job -
      eventType -
    • Docx4jEvent

      public Docx4jEvent(JobIdentifier job, PackageIdentifier pkgIdentifier)
      Use this to signal the start or end of work on a specific pkg in a job.
      Parameters:
      job -
      eventType -
    • Docx4jEvent

      public 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.
      Parameters:
      job -
      eventType -
    • Docx4jEvent

      public 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.
      Parameters:
      job -
      eventType -
    • Docx4jEvent

      public 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.
      Parameters:
      job -
      eventType -
  • Method Details

    • setEventNotifier

      public static void setEventNotifier(net.engio.mbassy.bus.MBassador<Docx4jEvent> bus)
    • publishAsynch

      public static Boolean publishAsynch()
    • setPublishAsynch

      public static void setPublishAsynch(Boolean publishAsynch)
    • getPkgIdentifier

      public PackageIdentifier getPkgIdentifier()
    • publish

      public void publish()
    • getJob

      public JobIdentifier getJob()
    • getProcessStep

      public ProcessStep 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

      public void setProcessStep(ProcessStep processStep)