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 <= theMinimumstatic voidisGreaterThanOrEqualTo(long theValue, long theMinimum, String theMessage)ThrowsIllegalArgumentExceptionif theValue is < 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)
-
Constructor Details
-
ValidateUtil
public ValidateUtil()
-
-
Method Details
-
isGreaterThan
ThrowsIllegalArgumentExceptionif theValue is <= theMinimum -
isGreaterThanOrEqualTo
ThrowsIllegalArgumentExceptionif theValue is < 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) -
exactlyOneNotNullOrThrowInvalidRequestException
public static void exactlyOneNotNullOrThrowInvalidRequestException(Object[] theObjects, String theMessage)
-