|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jsoup.helper.Validate
public final class Validate
Simple validation methods. Designed for jsoup internal use
| Method Summary | |
|---|---|
static void |
fail(String msg) Cause a failure. |
static void |
isFalse(boolean val) Validates that the value is false |
static void |
isFalse(boolean val, String msg) Validates that the value is false |
static void |
isTrue(boolean val) Validates that the value is true |
static void |
isTrue(boolean val, String msg) Validates that the value is true |
static void |
noNullElements(Object[] objects) Validates that the array contains no null elements |
static void |
noNullElements(Object[] objects, String msg) Validates that the array contains no null elements |
static void |
notEmpty(String string) Validates that the string is not empty |
static void |
notEmpty(String string, String msg) Validates that the string is not empty |
static void |
notNull(Object obj) Validates that the obect is not null |
static void |
notNull(Object obj, String msg) Validates that the object is not null |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void notNull(Object obj)
obj - object to test
public static void notNull(Object obj,
String msg)
obj - object to test
msg - message to output if validation fails
public static void isTrue(boolean val)
val - object to test
public static void isTrue(boolean val,
String msg)
val - object to test
msg - message to output if validation fails
public static void isFalse(boolean val)
val - object to test
public static void isFalse(boolean val,
String msg)
val - object to test
msg - message to output if validation fails
public static void noNullElements(Object[] objects)
objects - the array to test
public static void noNullElements(Object[] objects,
String msg)
objects - the array to test
msg - message to output if validation fails
public static void notEmpty(String string)
string - the string to test
public static void notEmpty(String string,
String msg)
string - the string to test
msg - message to output if validation fails
public static void fail(String msg)
msg - message to output.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||