public class BookmarkValidationProcess extends AbstractProcess
| Constructor and Description |
|---|
BookmarkValidationProcess() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
exploreOutlineLevel(PreflightContext ctx,
PDOutlineItem inputItem)
This method explores the Outline Item Level and call a validation method on each Outline Item.
|
void |
validate(PreflightContext ctx) |
protected boolean |
validateItem(PreflightContext ctx,
PDOutlineItem inputItem)
This method checks the inputItem dictionary and call the exploreOutlineLevel method on the first child if it is
not null.
|
addValidationError, addValidationErrorspublic void validate(PreflightContext ctx) throws ValidationException
ValidationExceptionprotected boolean exploreOutlineLevel(PreflightContext ctx, PDOutlineItem inputItem) throws ValidationException
inputItem - The first outline item of the levelctx - The document handler which provides useful data for the level exploration (ex : access to the
PDDocument)ValidationExceptionprotected boolean validateItem(PreflightContext ctx, PDOutlineItem inputItem) throws ValidationException
inputItem - outline item to validatectx - The document handler which provides useful data for the level exploration (ex : access to the
PDDocument)result - ValidationExceptionCopyright © 2002–2019 The Apache Software Foundation. All rights reserved.