
Package ca.uhn.fhir.util
Class ValidateUtil
java.lang.Object
ca.uhn.fhir.util.ValidateUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidexactlyOneNotNullOrThrowInvalidRequestException(Object[] theObjects, String theMessage) static voidisGreaterThan(long theValue, long theMinimum, String theMessage) ThrowsIllegalArgumentExceptionif theValue is less than or equal to theMinimumstatic voidisGreaterThanOrEqualTo(long theValue, long theMinimum, String theMessage) ThrowsIllegalArgumentExceptionif theValue is less than theMinimumstatic voidisNotBlankOrThrowIllegalArgument(String theString, String theMessage) static voidisNotBlankOrThrowInvalidRequest(String theString, String theMessage) static voidisNotBlankOrThrowUnprocessableEntity(String theString, String theMessage) static voidisNotNullOrThrowUnprocessableEntity(Object theObject, String theMessage, Object... theValues) static voidisNotTooLongOrThrowIllegalArgument(String theString, int theMaxLength, String theMessage) static voidisTrueOrThrowInvalidRequest(boolean theSuccess, String theMessage, Object... theValues) static voidisTrueOrThrowResourceNotFound(boolean theSuccess, String theMessage, Object... theValues)
-
Constructor Details
-
ValidateUtil
public ValidateUtil()
-
-
Method Details
-
isGreaterThan
ThrowsIllegalArgumentExceptionif theValue is less than or equal to theMinimum -
isGreaterThanOrEqualTo
ThrowsIllegalArgumentExceptionif theValue is less than 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)
-