Class ContextHelper
- java.lang.Object
-
- org.apache.pdfbox.preflight.utils.ContextHelper
-
public final class ContextHelper extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description privateContextHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voidcallValidation(PreflightContext context, java.lang.Object element, java.lang.String processName)Put the element to check on the top of the ValidationPath and call the validation method on the Process.private static booleanhasRecursion(PreflightContext context, java.lang.Object element, PreflightPath validationPath)static voidvalidateElement(PreflightContext context, java.lang.Object element, java.lang.String processName)Check that the element parameter isn't null before calling thecallValidation(PreflightContext, Object, String)method.static voidvalidateElement(PreflightContext context, java.lang.String processName)call directly thecallValidation(PreflightContext, Object, String)
-
-
-
Method Detail
-
validateElement
public static void validateElement(PreflightContext context, java.lang.Object element, java.lang.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
-
callValidation
private static void callValidation(PreflightContext context, java.lang.Object element, java.lang.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- (mandatory) the preflight context that contains all required informationelement-processName- the process to instantiate and to compute- Throws:
ValidationException
-
hasRecursion
private static boolean hasRecursion(PreflightContext context, java.lang.Object element, PreflightPath validationPath)
-
validateElement
public static void validateElement(PreflightContext context, java.lang.String processName) throws ValidationException
call directly thecallValidation(PreflightContext, Object, String)- Parameters:
context-processName-- Throws:
ValidationException
-
-