| java.lang.Object org.apache.jetspeed.util.ArgUtil
ArgUtil | final public class ArgUtil (Code) | |
ArgUtil
Misc. utilities for rudimentary argument validation
author: Scott T. Weaver version: $Id: ArgUtil.java 516448 2007-03-09 16:25:47Z ate $ |
Method Summary | |
final public static void | assertNotNull(Class nonNullClass, Object nonNullObject, Object thisObject) | final public static void | assertNotNull(Class nonNullClass, Object nonNullObject, Object thisObject, String methodName) | final public static void | assertPropertyNotNull(Object nonNullObject, Object thisObject, String methodName, String property) | public static void | notNull(Object[] args, String[] argNames, String methodName) throws: java.lang.IllegalArgumentException - If ANY of the arguments are null Parameters: args - array of arguments to validate as not nul Parameters: argNames - array of arguments names, idexes should match with args. |
notNull | public static void notNull(Object[] args, String[] argNames, String methodName)(Code) | | throws: java.lang.IllegalArgumentException - If ANY of the arguments are null Parameters: args - array of arguments to validate as not nul Parameters: argNames - array of arguments names, idexes should match with args. Parameters: methodName - Name of method we are validating arguments for. |
|
|