Package ca.uhn.fhir.util
Class ValidateUtil
- java.lang.Object
-
- ca.uhn.fhir.util.ValidateUtil
-
public class ValidateUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ValidateUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
ValidateUtil
public ValidateUtil()
-
-
Method Detail
-
isGreaterThan
public static void isGreaterThan(long theValue, long theMinimum, String theMessage)
ThrowsIllegalArgumentExceptionif theValue is <= theMinimum
-
isGreaterThanOrEqualTo
public static void isGreaterThanOrEqualTo(long theValue, long theMinimum, String theMessage)
ThrowsIllegalArgumentExceptionif theValue is < theMinimum
-
isNotBlankOrThrowIllegalArgument
public static void isNotBlankOrThrowIllegalArgument(String theString, String theMessage)
-
isNotBlankOrThrowInvalidRequest
public static void isNotBlankOrThrowInvalidRequest(String theString, String theMessage)
-
isNotBlankOrThrowUnprocessableEntity
public static void isNotBlankOrThrowUnprocessableEntity(String theString, String theMessage)
-
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)
-
-