Class TableResolver

java.lang.Object
org.wickedsource.docxstamper.processor.BaseCommentProcessor
org.wickedsource.docxstamper.processor.table.TableResolver
All Implemented Interfaces:
ICommentProcessor, ITableResolver

public class TableResolver extends BaseCommentProcessor implements ITableResolver

TableResolver class.

Version:
1.6.6
Author:
Joseph Verron
  • Method Details

    • newInstance

      public static ICommentProcessor newInstance(PlaceholderReplacer pr, String nullReplacementValue)
      Generate a new TableResolver instance
      Parameters:
      pr - a PlaceholderReplacer instance
      nullReplacementValue - in case the value to interpret is null
      Returns:
      a new TableResolver instance
    • newInstance

      public static ICommentProcessor newInstance(PlaceholderReplacer pr)
      Generate a new TableResolver instance where value is replaced by an empty list when null
      Parameters:
      pr - a PlaceholderReplacer instance
      Returns:
      a new TableResolver instance
    • resolveTable

      public void resolveTable(StampTable givenTable)
      Resolves the given table by manipulating the given table in the template
      Specified by:
      resolveTable in interface ITableResolver
      Parameters:
      givenTable - the table to resolve.
    • commitChanges

      public void commitChanges(org.docx4j.openpackaging.packages.WordprocessingMLPackage document)
      This method is called after all comments in the .docx template have been passed to the comment processor. All manipulations of the .docx document SHOULD BE done in this method. If certain manipulations are already done within in the custom methods of a comment processor, the ongoing iteration over the paragraphs in the document may be disturbed.
      Specified by:
      commitChanges in interface ICommentProcessor
      Parameters:
      document - The Word document that can be manipulated by using the DOCX4J api.
    • reset

      public void reset()
      Resets all state in the comment processor so that it can be re-used in another stamping process.
      Specified by:
      reset in interface ICommentProcessor