public final class

Validate

extends Object
java.lang.Object
   ↳ org.jsoup.helper.Validate

Class Overview

Simple validation methods. Designed for jsoup internal use

Summary

Public Methods
static void isTrue(boolean val, String msg)
Validates that the value is true
static void isTrue(boolean val)
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, String msg)
Validates that the object is not null
static void notNull(Object obj)
Validates that the obect is not null
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void isTrue (boolean val, String msg)

Validates that the value is true

Parameters
val object to test
msg message to output if validation fails

public static void isTrue (boolean val)

Validates that the value is true

Parameters
val object to test

public static void noNullElements (Object[] objects)

Validates that the array contains no null elements

Parameters
objects the array to test

public static void noNullElements (Object[] objects, String msg)

Validates that the array contains no null elements

Parameters
objects the array to test
msg message to output if validation fails

public static void notEmpty (String string)

Validates that the string is not empty

Parameters
string the string to test

public static void notEmpty (String string, String msg)

Validates that the string is not empty

Parameters
string the string to test
msg message to output if validation fails

public static void notNull (Object obj, String msg)

Validates that the object is not null

Parameters
obj object to test
msg message to output if validation fails

public static void notNull (Object obj)

Validates that the obect is not null

Parameters
obj object to test