Class Validate
java.lang.Object
com.itextpdf.styledxmlparser.jsoup.helper.Validate
Simple validation methods. Designed for jsoup internal use
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCause a failure.static voidisFalse(boolean val) Validates that the value is falsestatic voidValidates that the value is falsestatic voidisTrue(boolean val) Validates that the value is truestatic voidValidates that the value is truestatic voidnoNullElements(Object[] objects) Validates that the array contains no null elementsstatic voidnoNullElements(Object[] objects, String msg) Validates that the array contains no null elementsstatic voidValidates that the string is not null and is not emptystatic voidValidates that the string is not null and is not emptystatic voidValidates that the object is not nullstatic voidValidates that the object is not null
-
Constructor Details
-
Validate
private Validate()
-
-
Method Details
-
notNull
Validates that the object is not null- Parameters:
obj- object to test
-
notNull
-
isTrue
public static void isTrue(boolean val) Validates that the value is true- Parameters:
val- object to test
-
isTrue
Validates that the value is true- Parameters:
val- object to testmsg- message to output if validation fails
-
isFalse
public static void isFalse(boolean val) Validates that the value is false- Parameters:
val- object to test
-
isFalse
Validates that the value is false- Parameters:
val- object to testmsg- message to output if validation fails
-
noNullElements
Validates that the array contains no null elements- Parameters:
objects- the array to test
-
noNullElements
-
notEmpty
Validates that the string is not null and is not empty- Parameters:
string- the string to test
-
notEmpty
-
fail
-