Class Hooks
java.lang.Object
pro.verron.officestamper.api.Hooks
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 Summary
Modifier and TypeMethodDescriptionstatic ResetableIterator<Hook> ofHooks(org.docx4j.wml.ContentAccessor contentAccessor) Creates aResetableIteratorof Hook instances for a specific document part, based on the provided content accessor.
-
Method Details
-
ofHooks
Creates aResetableIteratorof 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
ResetableIteratorof Hook instances for the specified document part
-