Top Constructors Methods
org.apache.pdfbox.preflight.utils

public final Class ContextHelper

extends Object
Class Inheritance
Imports
org.apache.pdfbox.cos.COSBase, org.apache.pdfbox.pdmodel.PDResources, org.apache.pdfbox.pdmodel.common.COSObjectable, org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject, org.apache.pdfbox.preflight.PreflightConfiguration, .PreflightContext, .PreflightPath, .ValidationResult.ValidationError, org.apache.pdfbox.preflight.exception.ValidationException, org.apache.pdfbox.preflight.process.ValidationProcess

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
callValidation(PreflightContext
(mandatory) the preflight context that contains all required information
context
,
Object element, String
the process to instantiate and to compute
processName
)

Put the element to check on the top of the ValidationPath and call the validation method on the Process.

private static boolean
hasRecursion(PreflightContext context, Object element, PreflightPath validationPath)

public static void
validateElement(PreflightContext context, Object element, String processName)

Check that the element parameter isn't null before calling the callValidation(PreflightContext, Object, String) method.

public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ContextHelperback to summary
private ContextHelper()

Method Detail

callValidationback to summary
private static void callValidation(PreflightContext context, Object element, String processName) throws ValidationException

Put the element to check on the top of the ValidationPath and call the validation method on the Process.

Parameters
context:PreflightContext

(mandatory) the preflight context that contains all required information

processName:String

the process to instantiate and to compute

hasRecursionback to summary
private static boolean hasRecursion(PreflightContext context, Object element, PreflightPath validationPath)
validateElementback to summary
public static void validateElement(PreflightContext context, Object element, String processName) throws ValidationException

Check that the element parameter isn't null before calling the callValidation(PreflightContext, Object, String) method.

validateElementback to summary
public static void validateElement(PreflightContext context, String processName) throws ValidationException

call directly the callValidation(PreflightContext, Object, String)