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 TypeMethodDescriptionbooleanexecute(PdfFormField firstField, PdfFormField secondField, boolean throwExceptionOnError) executes the strategy.
-
Method Details
-
execute
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 merged successfully, false otherwise
-