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. |
void |
validate(Object obj,
IsoKey key,
PdfResources resources,
PdfStream contentStream,
Object extra)
Check the provided object for conformance with all the
IValidationChecker implementations. |
void |
validate(ValidationContext context)
Validate the provided
ValidationContext with all the IValidationChecker implementations. |
public ValidationContainer()
ValidationContainer instance.
By default, no IValidationChecker implementations are added.
public void validate(ValidationContext context)
ValidationContext with all the IValidationChecker implementations.
context - the ValidationContext to validatepublic void validate(Object obj, IsoKey key, PdfResources resources, PdfStream contentStream, Object extra)
IValidationChecker implementations.
obj - the object to checkkey - the IsoKey of the objectresources - the PdfResources of the objectcontentStream - the PdfStream of the objectextra - additional informationpublic 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 otherwiseCopyright © 1998–2024 Apryse Group NV. All rights reserved.