@DoNotObfuscate
public final class SingleFieldJavaScriptValidator
extends com.pdfunit.validators.AbstractValidator
Modifier | Constructor and Description |
---|---|
protected |
SingleFieldJavaScriptValidator(SingleFieldValidator backReference,
com.pdfunit.internal.spi.IField currentField)
Creating a validator for a JavaScript that is associated to a field of an PDF formular.
|
Modifier and Type | Method and Description |
---|---|
SingleFieldJavaScriptValidator |
containing(java.lang.String expectedScript)
This method checks that the expected string is part of one of the existing JavaScript snippets
that are associated to the current field.
|
SingleFieldValidator |
hasField(java.lang.String expectedFieldName)
Verify that a field with the given name exists.
|
protected SingleFieldJavaScriptValidator(SingleFieldValidator backReference, com.pdfunit.internal.spi.IField currentField)
@Guarded public SingleFieldJavaScriptValidator containing(java.lang.String expectedScript)
@Guarded public SingleFieldValidator hasField(java.lang.String expectedFieldName)
Copyright (C) PDFUnit.com. See here for license.