public final class ContextHelper
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
ContextHelper() |
Modifier and Type | Method and Description |
---|---|
private static void |
callValidation(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 boolean |
hasRecursion(PreflightContext context,
java.lang.Object element,
PreflightPath validationPath) |
static void |
validateElement(PreflightContext context,
java.lang.Object element,
java.lang.String processName)
Check that the element parameter isn't null before calling the
callValidation(PreflightContext, Object, String) method. |
static void |
validateElement(PreflightContext context,
java.lang.String processName)
call directly the
callValidation(PreflightContext, Object, String) |
public static void validateElement(PreflightContext context, java.lang.Object element, java.lang.String processName) throws ValidationException
callValidation(PreflightContext, Object, String)
method.context
- element
- processName
- ValidationException
private static void callValidation(PreflightContext context, java.lang.Object element, java.lang.String processName) throws ValidationException
context
- (mandatory) the preflight context that contains all required informationelement
- processName
- the process to instantiate and to computeValidationException
private static boolean hasRecursion(PreflightContext context, java.lang.Object element, PreflightPath validationPath)
public static void validateElement(PreflightContext context, java.lang.String processName) throws ValidationException
callValidation(PreflightContext, Object, String)
context
- processName
- ValidationException