public class CommentProcessorRegistry extends Object
| Constructor and Description |
|---|
CommentProcessorRegistry()
|
| Modifier and Type | Method and Description |
|---|---|
void |
registerCommentProcessor(Class<?> interfaceClass,
ICommentProcessor commentProcessor)
Registers the specified ICommentProcessor as an implementation of
the specified interface.
|
<T> void |
runProcessors(org.docx4j.openpackaging.packages.WordprocessingMLPackage document,
T contextRoot)
Lets each registered ICommentProcessor have a run on the
specified docx document.
|
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.
Copyright © 2016. All rights reserved.