Package com.evolveum.midpoint.util
Class Checks
- java.lang.Object
 - 
- com.evolveum.midpoint.util.Checks
 
 
- 
public class Checks extends Object
 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckSchema(boolean test, String template, Object... info)Throws SchemaException if test failed.static <T> TcheckSchemaNotNull(T obj, String template, Object... info) 
 - 
 
- 
- 
Method Detail
- 
checkSchema
public static void checkSchema(boolean test, String template, Object... info) throws SchemaExceptionThrows SchemaException if test failed.- Parameters:
 test- testtemplate- String template for formatting arguments seeStrings.lenientFormat(String, Object...)for formatting.info- Arguments for exception message- Throws:
 SchemaException- Throws exception with formatted string if test is false
 
- 
checkSchemaNotNull
@NonNull public static <T> T checkSchemaNotNull(T obj, String template, Object... info) throws SchemaException- Type Parameters:
 T- Class of object- Parameters:
 obj- object to be tested for nulltemplate- String template for formatting arguments seeStrings.lenientFormat(String, Object...)for formatting.info- Arguments for exception message- Returns:
 - Object if not null
 - Throws:
 SchemaException
 
 - 
 
 -