| java.lang.Object org.araneaframework.core.Assert
Assert | abstract public class Assert (Code) | | Assists in validating arguments.
The class is based along the lines of JUnit. If an argument value is
deemed invalid, an IllegalArgumentException is thrown. For example:
Assert.isTrue( i > 0, "The value must be greater than zero: ", i);
Assert.notNull( surname, "The surname must not be null");
Copied from Jakarta Commons Lang for framework internal use.
Please use the original from http://jakarta.apache.org/commons/lang/.
author: Ola Berg author: Stephen Colebourne author: Gary Gregory author: Norm Deane author: Jevgeni Kabanov (ekabanov at araneaframework dot org) |
Method Summary | |
public static void | isInstanceOf(Object that, Class klass, Object object, String message) | public static void | isInstanceOf(Class klass, Object object, String message) | public static void | isInstanceOfParam(Object that, Class klass, Object object, String parameterName) | public static void | isInstanceOfParam(Class klass, Object object, String parameterName) | public static void | isTrue(Object that, boolean expression, String message) | public static void | isTrue(boolean expression, String message) | public static void | noNullElements(Collection collection, String message) | public static void | noNullElements(Object that, Collection collection, String message) | public static void | noNullElementsParam(Collection collection, String param) | public static void | noNullElementsParam(Object that, Collection collection, String param) | public static void | notEmpty(Object[] array, String message) | public static void | notEmpty(Collection collection, String message) | public static void | notEmpty(Map map, String message) | public static void | notEmpty(String string, String message) | public static void | notEmptyParam(String string, String parameterName) | public static void | notEmptyParam(Object that, String string, String parameterName) | public static void | notNull(Object object) | public static void | notNull(Object that, Object object, String message) | public static void | notNull(Object object, String message) | public static void | notNullParam(Object object, String parameterName) | public static void | notNullParam(Object that, Object object, String parameterName) | public static String | thisToString(Object that) |
isTrue | public static void isTrue(boolean expression, String message)(Code) | | |
|
|