Package org.alfresco.util
Class ParameterCheck
java.lang.Object
org.alfresco.util.ParameterCheck
Utility class to perform various common parameter checks
- Author:
- gavinc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final void
Checks that the parameter with the given name has content i.e.static final void
mandatoryCollection
(String strParamName, Collection coll) Checks that the collection parameter contains at least one item.static final void
mandatoryString
(String strParamName, String strParamValue) Checks that the string parameter with the given name has content i.e.
-
Constructor Details
-
ParameterCheck
public ParameterCheck()
-
-
Method Details
-
mandatory
Checks that the parameter with the given name has content i.e. it is not null- Parameters:
strParamName
- Name of parameter to checkobject
- Value of the parameter to check
-
mandatoryString
Checks that the string parameter with the given name has content i.e. it is not null and not zero length- Parameters:
strParamName
- Name of parameter to checkstrParamValue
- Value of the parameter to check
-
mandatoryCollection
Checks that the collection parameter contains at least one item.- Parameters:
strParamName
- Name of parameter to checkcoll
- collection to check
-