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, addValidationErrors
public void validate(PreflightContext ctx) throws ValidationException
ValidationException
protected 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)ValidationException
protected 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
- ValidationException
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.