Class CommentHook
java.lang.Object
pro.verron.officestamper.core.CommentHook
-
Method Summary
Modifier and TypeMethodDescriptionbooleanrun(EngineFactory engineFactory, ContextRoot contextRoot, OfficeStamperEvaluationContextFactory evaluationContextFactory) Executes the hook's logic within the context of a document processing flow.voidsetContextKey(String contextKey) Sets the context key associated with this hook.
-
Method Details
-
run
public boolean run(EngineFactory engineFactory, ContextRoot contextRoot, OfficeStamperEvaluationContextFactory evaluationContextFactory) Description copied from interface:DocxHookExecutes the hook's logic within the context of a document processing flow.- Specified by:
runin interfaceDocxHook- Parameters:
engineFactory- a factory responsible for creating instances of theEngineclass, which may be used during the execution of the hook's logiccontextRoot- the root of the context tree, representing the hierarchical structure of context branches available during document processingevaluationContextFactory- a factory for creating evaluation contexts, which are used to evaluate expressions and handle dynamic behavior during the document processing flow- Returns:
trueif the execution of the hook was successful, otherwisefalse
-
setContextKey
Description copied from interface:HookSets the context key associated with this hook. The context key is a unique identifier that can be used to match or scope the hook's execution within a specificContextTreebranch during document processing.- Specified by:
setContextKeyin interfaceHook- Parameters:
contextKey- the unique key representing the context in which this hook should operate
-