Class CommentProcessorRegistry
java.lang.Object
org.wickedsource.docxstamper.processor.CommentProcessorRegistry
Allows registration of ICommentProcessor objects. Each registered
ICommentProcessor must implement an interface which has to be specified at
registration time. Provides several getter methods to access the registered
ICommentProcessors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidregisterCommentProcessor(Class<?> interfaceClass, ICommentProcessor commentProcessor) voidreset()<T> voidrunProcessors(org.docx4j.openpackaging.packages.WordprocessingMLPackage document, ProxyBuilder<T> proxyBuilder) Lets each registered ICommentProcessor have a run on the specified docx document.voidsetExpressionResolver(ExpressionResolver expressionResolver) voidsetFailOnInvalidExpression(boolean failOnInvalidExpression)
-
Constructor Details
-
CommentProcessorRegistry
-
-
Method Details
-
setExpressionResolver
-
registerCommentProcessor
-
runProcessors
public <T> void runProcessors(org.docx4j.openpackaging.packages.WordprocessingMLPackage document, ProxyBuilder<T> proxyBuilder) Lets each registered ICommentProcessor have a run on the specified docx document. At the end of the document the commit method is called for each ICommentProcessor. The ICommentProcessors are run in the order they were registered.- Type Parameters:
T- type of the contextRoot object.- Parameters:
document- the docx document over which to run the registered ICommentProcessors.proxyBuilder- a builder for a proxy around the context root object to customize its interface
-
isFailOnInvalidExpression
public boolean isFailOnInvalidExpression() -
setFailOnInvalidExpression
public void setFailOnInvalidExpression(boolean failOnInvalidExpression) -
reset
public void reset()
-