Interface OnDuplicateFormFieldNameStrategy
-
- All Known Implementing Classes:
AddIndexStrategy
,AlwaysThrowExceptionStrategy
,MergeFieldsStrategy
public interface OnDuplicateFormFieldNameStrategy
AOnDuplicateFormFieldNameStrategy
implementation that throws an exception if the second field has the same name as the first field.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
execute(PdfFormField firstField, PdfFormField secondField, boolean throwExceptionOnError)
executes the strategy.
-
-
-
Method Detail
-
execute
boolean execute(PdfFormField firstField, PdfFormField secondField, boolean throwExceptionOnError)
executes the strategy.- Parameters:
firstField
- the first fieldsecondField
- the second fieldthrowExceptionOnError
- if true, an exception will be thrown- Returns:
- true if the second field was merged successfully, false otherwise
-
-