|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.surf.util.ParameterCheck
public final class ParameterCheck
Utility class to perform various common parameter checks
Constructor Summary | |
---|---|
ParameterCheck()
|
Method Summary | |
---|---|
static void |
mandatory(String strParamName,
Object object)
Checks that the parameter with the given name has content i.e. |
static void |
mandatoryCollection(String strParamName,
Collection coll)
Checks that the collection parameter contains at least one item. |
static void |
mandatoryString(String strParamName,
String strParamValue)
Checks that the string parameter with the given name has content i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParameterCheck()
Method Detail |
---|
public static final void mandatory(String strParamName, Object object)
strParamName
- Name of parameter to checkobject
- Value of the parameter to checkpublic static final void mandatoryString(String strParamName, String strParamValue)
strParamName
- Name of parameter to checkstrParamValue
- Value of the parameter to checkpublic static final void mandatoryCollection(String strParamName, Collection coll)
strParamName
- Name of parameter to checkcoll
- collection to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |