Class ContextHelper
java.lang.Object
org.apache.pdfbox.preflight.utils.ContextHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
callValidation
(PreflightContext context, Object element, String 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) static void
validateElement
(PreflightContext context, Object element, String processName) Check that the element parameter isn't null before calling thecallValidation(PreflightContext, Object, String)
method.static void
validateElement
(PreflightContext context, String processName) call directly thecallValidation(PreflightContext, Object, String)
-
Constructor Details
-
ContextHelper
private ContextHelper()
-
-
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
-
callValidation
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
- (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, Object element, PreflightPath validationPath) -
validateElement
public static void validateElement(PreflightContext context, String processName) throws ValidationException call directly thecallValidation(PreflightContext, Object, String)
- Parameters:
context
-processName
-- Throws:
ValidationException
-