Validates a parameter as a string. This allows the string to be blank or empty. :param parameterValue: Value to be evaluated. :type Unknown :return Boolean: True indicates the parameter is a string type. :type Boolean
(parameterValue)
| 169 | #Tested 5 |
| 170 | @staticmethod |
| 171 | def funcIsValidStringType(parameterValue): |
| 172 | """ |
| 173 | Validates a parameter as a string. This allows the string to be blank or empty. |
| 174 | |
| 175 | :param parameterValue: Value to be evaluated. |
| 176 | :type Unknown |
| 177 | :return Boolean: True indicates the parameter is a string type. |
| 178 | :type Boolean |
| 179 | """ |
| 180 | |
| 181 | #Check to make sure it is not null |
| 182 | if parameterValue == None: |
| 183 | return False |
| 184 | |
| 185 | #Check to make sure it is a string |
| 186 | if not type(parameterValue) is StringType: |
| 187 | return False |
| 188 | |
| 189 | return True |
| 190 | |
| 191 | #Tested 5 |
| 192 | @staticmethod |
no outgoing calls
no test coverage detected