Package ca.uhn.fhir.util
Class ValidateUtil
java.lang.Object
ca.uhn.fhir.util.ValidateUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
exactlyOneNotNullOrThrowInvalidRequestException
(Object[] theObjects, String theMessage) static void
isGreaterThan
(long theValue, long theMinimum, String theMessage) ThrowsIllegalArgumentException
if theValue is invalid input: '<'= theMinimumstatic void
isGreaterThanOrEqualTo
(long theValue, long theMinimum, String theMessage) ThrowsIllegalArgumentException
if theValue is invalid input: '<' theMinimumstatic void
isNotBlankOrThrowIllegalArgument
(String theString, String theMessage) static void
isNotBlankOrThrowInvalidRequest
(String theString, String theMessage) static void
isNotBlankOrThrowUnprocessableEntity
(String theString, String theMessage) static void
isNotNullOrThrowUnprocessableEntity
(Object theObject, String theMessage, Object... theValues) static void
isNotTooLongOrThrowIllegalArgument
(String theString, int theMaxLength, String theMessage) static void
isTrueOrThrowInvalidRequest
(boolean theSuccess, String theMessage, Object... theValues) static void
isTrueOrThrowResourceNotFound
(boolean theSuccess, String theMessage, Object... theValues)
-
Constructor Details
-
ValidateUtil
public ValidateUtil()
-
-
Method Details
-
isGreaterThan
ThrowsIllegalArgumentException
if theValue is invalid input: '<'= theMinimum -
isGreaterThanOrEqualTo
ThrowsIllegalArgumentException
if theValue is invalid input: '<' theMinimum -
isNotBlankOrThrowIllegalArgument
-
isNotBlankOrThrowInvalidRequest
-
isNotBlankOrThrowUnprocessableEntity
-
isNotNullOrThrowUnprocessableEntity
public static void isNotNullOrThrowUnprocessableEntity(Object theObject, String theMessage, Object... theValues) -
isNotTooLongOrThrowIllegalArgument
public static void isNotTooLongOrThrowIllegalArgument(String theString, int theMaxLength, String theMessage) -
isTrueOrThrowInvalidRequest
public static void isTrueOrThrowInvalidRequest(boolean theSuccess, String theMessage, Object... theValues) -
isTrueOrThrowResourceNotFound
public static void isTrueOrThrowResourceNotFound(boolean theSuccess, String theMessage, Object... theValues) -
exactlyOneNotNullOrThrowInvalidRequestException
public static void exactlyOneNotNullOrThrowInvalidRequestException(Object[] theObjects, String theMessage)
-