public final class ParameterCheck extends Object
| Constructor and Description |
|---|
ParameterCheck() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 checkCopyright © 2005–2018 Alfresco Software. All rights reserved.