|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.core.util.Assert
public class Assert
A helper class that defines a method used for validating the input arguments.
| Method Summary | |
|---|---|
static void |
notEmpty(String obj,
String msg)
Asserts that passed object instance is not null and not empty. |
static void |
notNull(Object obj,
String msg)
Asserts that passed object instance is not null. |
static void |
paramNotEmpty(String param,
String paramName)
Asserts that passed parameter is not null and not empty. |
static void |
paramNotNull(Object param,
String paramName)
Asserts that passed parameter 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 paramNotNull(Object param,
String paramName)
IllegalArgumentException is thrown.
param - the parameter to checkparamName - the parameter name
IllegalArgumentException - if param is null
public static void paramNotEmpty(String param,
String paramName)
IllegalArgumentException is thrown.
param - the parameter to checkparamName - the parameter name
IllegalArgumentException - if param is null or empty string
public static void notNull(Object obj,
String msg)
IllegalArgumentException is thrown.
obj - the object instance to checkmsg - the error message to use
IllegalArgumentException - if obj is null
public static void notEmpty(String obj,
String msg)
IllegalArgumentException is thrown.
obj - the object instance to checkmsg - the error message to use
IllegalArgumentException - if obj is null or empty string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||