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