java.lang.Object
de.s42.base.validation.ValidationHelper
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic booleanstatic booleanstatic booleanstatic booleanisEmailAddress(String emailAddress) static booleanstatic booleanstatic booleanisGreaterEqual0(Object value) static booleanstatic booleanstatic booleanisMethodName(String methodName) static booleanisNotEmptyArray(Object value) static booleanstatic booleanstatic booleanisStringNotBlank(Object value) static booleanstatic booleanstatic booleanstatic voidisValid(boolean condition) This mesthod allows to check for validity of a condition - otherwise throws a IllegalArgumentException with the given messagestatic voidThis mesthod allows to check for validity of a condition - otherwise throws a IllegalArgumentException with the given messagestatic voidisValid(boolean condition, Supplier<? extends RuntimeException> exceptionSupplier) This mesthod allows to check for validity of a condition - otherwise throws a IllegalArgumentException with the given messagestatic booleanisVariableName(String variableName) static booleanisVariableNameOrNull(String variableName)
-
Felddetails
-
EMAIL_PATTERN
-
VARIABLE_NAME_PATTERN
-
METHOD_NAME_PATTERN
-
-
Konstruktordetails
-
ValidationHelper
private ValidationHelper()
-
-
Methodendetails
-
isValid
public static void isValid(boolean condition, Supplier<? extends RuntimeException> exceptionSupplier) throws RuntimeException This mesthod allows to check for validity of a condition - otherwise throws a IllegalArgumentException with the given message- Parameter:
condition-exceptionSupplier-- Löst aus:
IllegalArgumentExceptionRuntimeException
-
isValid
This mesthod allows to check for validity of a condition - otherwise throws a IllegalArgumentException with the given message- Parameter:
condition-message-- Löst aus:
IllegalArgumentException
-
isValid
This mesthod allows to check for validity of a condition - otherwise throws a IllegalArgumentException with the given message- Parameter:
condition-- Löst aus:
IllegalArgumentException
-
isEmailAddress
-
isMethodName
-
isVariableName
-
isVariableNameOrNull
-
isTypeOf
-
isString
-
isStringNotBlank
-
isUUID
-
isURL
-
isFloat
-
isDouble
-
isBoolean
-
isArray
-
isNotEmptyArray
-
isInteger
-
isNumber
-
isGreaterEqual0
-
isLong
-
isEqual
-