Package com.itextpdf.kernel.validation
Class ValidationContainer
java.lang.Object
com.itextpdf.kernel.validation.ValidationContainer
This class is a container for one or more
IValidationChecker
implementations.
It is used in the PdfDocument
to check for additional conformance requirements.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChecker
(IValidationChecker checker) Add anIValidationChecker
implementation to the container.boolean
containsChecker
(IValidationChecker checker) Check if the container contains the providedIValidationChecker
implementation.boolean
isPdfObjectChecked
(PdfObject pdfObject) IsPdfObject
ready to flush according to all addedIValidationChecker
implementations.void
validate
(IValidationContext context) Validate the providedIValidationContext
with all theIValidationChecker
implementations.
-
Constructor Details
-
ValidationContainer
public ValidationContainer()Create a newValidationContainer
instance.By default, no
IValidationChecker
implementations are added.
-
-
Method Details
-
validate
Validate the providedIValidationContext
with all theIValidationChecker
implementations.- Parameters:
-
context
- theIValidationContext
to validate
-
addChecker
Add anIValidationChecker
implementation to the container.- Parameters:
-
checker
- theIValidationChecker
implementation to add
-
containsChecker
Check if the container contains the providedIValidationChecker
implementation.- Parameters:
-
checker
- theIValidationChecker
implementation to check - Returns:
-
true
if the container contains the providedIValidationChecker
implementation,false
otherwise
-
isPdfObjectChecked
IsPdfObject
ready to flush according to all addedIValidationChecker
implementations.- Parameters:
-
pdfObject
- the pdf object to check - Returns:
-
true
if the object is ready to flush,false
otherwise
-