public class AlwaysThrowExceptionStrategy extends Object implements OnDuplicateFormFieldNameStrategy
OnDuplicateFormFieldNameStrategy implementation that throws an exception if the second field has the same
name as the first field.| Constructor and Description |
|---|
AlwaysThrowExceptionStrategy()
Creates an instance of
AlwaysThrowExceptionStrategy |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(PdfFormField firstField,
PdfFormField secondField,
boolean throwExceptionOnError)
executes the strategy.
|
public AlwaysThrowExceptionStrategy()
AlwaysThrowExceptionStrategypublic boolean execute(PdfFormField firstField, PdfFormField secondField, boolean throwExceptionOnError)
execute in interface OnDuplicateFormFieldNameStrategyfirstField - the first fieldsecondField - the second fieldthrowExceptionOnError - if true, an exception will be thrownCopyright © 1998–2025 Apryse Group NV. All rights reserved.