public class ValidationContainer extends Object
IValidationChecker implementations.
It is used in the PdfDocument to check for additional conformance requirements.
| Constructor and Description |
|---|
ValidationContainer()
Create a new
ValidationContainer instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addChecker(IValidationChecker checker)
Add an
IValidationChecker implementation to the container. |
boolean |
containsChecker(IValidationChecker checker)
Check if the container contains the provided
IValidationChecker implementation. |
boolean |
isPdfObjectChecked(PdfObject pdfObject)
Is
PdfObject ready to flush according to all added IValidationChecker implementations. |
void |
validate(IValidationContext context)
Validate the provided
IValidationContext with all the IValidationChecker implementations. |
public ValidationContainer()
ValidationContainer instance.
By default, no IValidationChecker implementations are added.
public void validate(IValidationContext context)
IValidationContext with all the IValidationChecker implementations.context - the IValidationContext to validatepublic void addChecker(IValidationChecker checker)
IValidationChecker implementation to the container.checker - the IValidationChecker implementation to addpublic boolean containsChecker(IValidationChecker checker)
IValidationChecker implementation.checker - the IValidationChecker implementation to checktrue if the container contains the provided IValidationChecker implementation,
false otherwisepublic boolean isPdfObjectChecked(PdfObject pdfObject)
PdfObject ready to flush according to all added IValidationChecker implementations.pdfObject - the pdf object to checktrue if the object is ready to flush, false otherwiseCopyright © 1998–2024 Apryse Group NV. All rights reserved.