Class LinkAnnotationValidator
- java.lang.Object
-
- org.apache.pdfbox.preflight.annotation.AnnotationValidator
-
- org.apache.pdfbox.preflight.annotation.LinkAnnotationValidator
-
public class LinkAnnotationValidator extends AnnotationValidator
Validation class for the LinkAnnotation
-
-
Field Summary
Fields Modifier and Type Field Description protected PDAnnotationLink
pdLink
PDFBox object which wraps the annotation dictionary-
Fields inherited from class org.apache.pdfbox.preflight.annotation.AnnotationValidator
annotDictionary, ctx, pdAnnot
-
-
Constructor Summary
Constructors Constructor Description LinkAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkDest()
Check if the Dest element is authorized according to the A entryboolean
validate()
In addition of the AnnotationValidator.validate() method, this method executes the checkDest method.-
Methods inherited from class org.apache.pdfbox.preflight.annotation.AnnotationValidator
checkActions, checkAP, checkCA, checkColors, checkFlags, checkMandatoryFields, checkPopup, checkSpecificMandatoryFields, searchRGBProfile, setFactory
-
-
-
-
Field Detail
-
pdLink
protected PDAnnotationLink pdLink
PDFBox object which wraps the annotation dictionary
-
-
Constructor Detail
-
LinkAnnotationValidator
public LinkAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary)
-
-
Method Detail
-
validate
public boolean validate() throws ValidationException
In addition of the AnnotationValidator.validate() method, this method executes the checkDest method.- Overrides:
validate
in classAnnotationValidator
- Returns:
- true if validation succeed, false otherwise.
- Throws:
ValidationException
- See Also:
AnnotationValidator.validate()
-
checkDest
protected boolean checkDest()
Check if the Dest element is authorized according to the A entry- Returns:
- if the Dest element is authorized according to the A entry.
-
-