Class Hooks

java.lang.Object
pro.verron.officestamper.api.Hooks

public class Hooks extends Object
Provides utility methods for working with Hook instances in the context of a WordprocessingML-based document. The Hooks class contains static methods to create and manage ResetableIterator instances of hooks for a given document part. These hooks allow the customization or extension of document processing behavior in a flexible and context-driven manner.
  • Method Details

    • ofHooks

      public static ResetableIterator<Hook> ofHooks(org.docx4j.wml.ContentAccessor contentAccessor)
      Creates a ResetableIterator of Hook instances for a specific document part, based on the provided content accessor. This method filters potential hooks from the content and maps them to Hook instances associated with the given document part.
      Parameters:
      contentAccessor - the content accessor providing access to the document's content
      Returns:
      a ResetableIterator of Hook instances for the specified document part