public class CommentProcessorRegistry extends Object
| Constructor and Description |
|---|
CommentProcessorRegistry(PlaceholderReplacer placeholderReplacer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFailOnInvalidExpression() |
void |
registerCommentProcessor(Class<?> interfaceClass,
ICommentProcessor commentProcessor)
Registers the specified ICommentProcessor as an implementation of the
specified interface.
|
void |
reset() |
<T> void |
runProcessors(org.docx4j.openpackaging.packages.WordprocessingMLPackage document,
T contextRoot)
Lets each registered ICommentProcessor have a run on the specified docx
document.
|
void |
setFailOnInvalidExpression(boolean failOnInvalidExpression) |
public CommentProcessorRegistry(PlaceholderReplacer placeholderReplacer)
public void registerCommentProcessor(Class<?> interfaceClass, ICommentProcessor commentProcessor)
interfaceClass - the Interface which is implemented by the commentProcessor.commentProcessor - the commentProcessor implementing the specified interface.public <T> void runProcessors(org.docx4j.openpackaging.packages.WordprocessingMLPackage document,
T contextRoot)
T - type of the contextRoot object.document - the docx document over which to run the registered ICommentProcessors.contextRoot - the context root object against which to resolve expressions within the
comments.public boolean isFailOnInvalidExpression()
public void setFailOnInvalidExpression(boolean failOnInvalidExpression)
public void reset()
Copyright © 2017. All rights reserved.