| Modifier and Type | Field and Description |
|---|---|
| private final PreflightConfiguration | |
| private PreflightContext | |
| private final ValidationResult | |
| private final Format |
| Access | Constructor and Description |
|---|---|
| public | PreflightDocument(COSDocument
the underlying COSDocument doc, Format the format used for validation format)Create a preflight document based on the COSDocument and load the default configuration for the given format. |
| public | PreflightDocument(COSDocument
the underlying COSDocument doc, Format the format used for validation format, PreflightConfiguration the configuration used for validation config)Create a preflight document based on the COSDocument that will use the given configuration bean to process the validation. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addValidationError(ValidationResult.
the validation error to be added errorAdd a validation error. |
| public void | addValidationErrors(List<ValidationResult.
the list of validation errors errorListAdd a list of validation errors. |
| public PreflightContext | |
| public Format | Returns: the format used for validationReturns the format which is used to validate the pdf document. |
| public List | Returns: an unmodifiable list of all validation errorsReturns an unmodifiable list of all validation errors. |
| public void | setContext(PreflightContext
the associated preflight context context)Set the preflight context for this document. |
| public ValidationResult | Returns: the validation resultCheck that PDDocument is a valid file according to the format given during the object creation. |
| config | back to summary |
|---|---|
| private final PreflightConfiguration config | |
| context | back to summary |
|---|---|
| private PreflightContext context | |
| result | back to summary |
|---|---|
| private final ValidationResult result | |
| specification | back to summary |
|---|---|
| private final Format specification | |
| PreflightDocument | back to summary |
|---|---|
| public PreflightDocument(COSDocument doc, Format format) Create a preflight document based on the COSDocument and load the default configuration for the given format.
| |
| PreflightDocument | back to summary |
|---|---|
| public PreflightDocument(COSDocument doc, Format format, PreflightConfiguration config) Create a preflight document based on the COSDocument that will use the given configuration bean to process the validation. if the configuration is null, a default configuration will be load using the given format.
| |
| addValidationError | back to summary |
|---|---|
| public void addValidationError(ValidationResult. Add a validation error.
| |
| addValidationErrors | back to summary |
|---|---|
| public void addValidationErrors(List<ValidationResult. Add a list of validation errors.
| |
| getContext | back to summary |
|---|---|
| public PreflightContext getContext() Returns the associated preflight context. It is created after parsing the pdf.
| |
| getSpecification | back to summary |
|---|---|
| public Format getSpecification() Returns the format which is used to validate the pdf document.
| |
| getValidationErrors | back to summary |
|---|---|
| public List Returns an unmodifiable list of all validation errors.
| |
| setContext | back to summary |
|---|---|
| public void setContext(PreflightContext context) Set the preflight context for this document.
| |
| validate | back to summary |
|---|---|
| public ValidationResult validate() throws ValidationException Check that PDDocument is a valid file according to the format given during the object creation.
| |