Validates a parameter as an integer. :param parameterValue: Value to be evaluated. :type Unknown :return Boolean: True indicates the parameter is a numeric. :type Boolean
(parameterValue)
| 148 | #Tested 14 |
| 149 | @staticmethod |
| 150 | def funcIsValidNumeric(parameterValue): |
| 151 | """ |
| 152 | Validates a parameter as an integer. |
| 153 | |
| 154 | :param parameterValue: Value to be evaluated. |
| 155 | :type Unknown |
| 156 | :return Boolean: True indicates the parameter is a numeric. |
| 157 | :type Boolean |
| 158 | """ |
| 159 | |
| 160 | #Check to make sure it is not null |
| 161 | if (parameterValue == None): |
| 162 | return False |
| 163 | #Check to make sure it is an integer |
| 164 | if((type(parameterValue) == IntType)or(type(parameterValue) == LongType)or(type(parameterValue) == FloatType)or(type(parameterValue) == ComplexType)or(str(type(parameterValue)) == "<type 'numpy.float64'>")): |
| 165 | if(not type(parameterValue) == BooleanType): |
| 166 | return True |
| 167 | return False |
| 168 | |
| 169 | #Tested 5 |
| 170 | @staticmethod |
no outgoing calls
no test coverage detected