Interface OnDuplicateFormFieldNameStrategy

All Known Implementing Classes:
AddIndexStrategy, AlwaysThrowExceptionStrategy, MergeFieldsStrategy

public interface OnDuplicateFormFieldNameStrategy
A OnDuplicateFormFieldNameStrategy implementation that throws an exception if the second field has the same name as the first field.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    execute(PdfFormField firstField, PdfFormField secondField, boolean throwExceptionOnError)
    executes the strategy.
  • Method Details

    • execute

      boolean execute (PdfFormField firstField, PdfFormField secondField, boolean throwExceptionOnError)
      executes the strategy.
      Parameters:
      firstField - the first field
      secondField - the second field
      throwExceptionOnError - if true, an exception will be thrown
      Returns:
      true if the second field was renamed successfully, false otherwise