Class ContextHelper
java.lang.Object
org.apache.pdfbox.preflight.utils.ContextHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidvalidateElement(PreflightContext context, Object element, String processName) Check that the element parameter isn't null before calling thecallValidation(PreflightContext, Object, String)method.static voidvalidateElement(PreflightContext context, String processName) call directly thecallValidation(PreflightContext, Object, String)
-
Method Details
-
validateElement
public static void validateElement(PreflightContext context, Object element, String processName) throws ValidationException Check that the element parameter isn't null before calling thecallValidation(PreflightContext, Object, String)method.- Parameters:
context-element-processName-- Throws:
ValidationException
-
validateElement
public static void validateElement(PreflightContext context, String processName) throws ValidationException call directly thecallValidation(PreflightContext, Object, String)- Parameters:
context-processName-- Throws:
ValidationException
-