Class ComponentPrecondition.Configuration
- java.lang.Object
-
- de.codecentric.reedelk.runtime.api.commons.ComponentPrecondition.Configuration
-
- Enclosing class:
- ComponentPrecondition
public static class ComponentPrecondition.Configuration extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringrequireNotBlank(Class<? extends Implementor> implementor, String value, String errorMessage)static <T> TrequireNotNull(Class<? extends Implementor> implementor, T object, String errorMessage)static <T extends DynamicValue<?>>
TrequireNotNullOrBlank(Class<? extends Implementor> implementor, T dynamicValue, String errorMessage)Checks if the given dynamic value is null, or if it is a script if it has an empty script or if it is not a script it has a null value.static voidrequireTrue(Class<? extends Implementor> implementor, boolean expression, String errorMessage)
-
-
-
Method Detail
-
requireNotNull
public static <T> T requireNotNull(Class<? extends Implementor> implementor, T object, String errorMessage)
-
requireNotBlank
public static String requireNotBlank(Class<? extends Implementor> implementor, String value, String errorMessage)
-
requireTrue
public static void requireTrue(Class<? extends Implementor> implementor, boolean expression, String errorMessage)
-
requireNotNullOrBlank
public static <T extends DynamicValue<?>> T requireNotNullOrBlank(Class<? extends Implementor> implementor, T dynamicValue, String errorMessage)
Checks if the given dynamic value is null, or if it is a script if it has an empty script or if it is not a script it has a null value. If the dynamic value is string, it checks if the text string is empty as well.
-
requireNotNull
public static <T extends DynamicValue<?>> T requireNotNull(Class<? extends Implementor> implementor, T dynamicValue, String errorMessage)
-
-