checkAttributeDataType

Use this method to determine if a particular string is a valid data-type for AttributeType records. (Here, data-type is a synonym for the attr_type field of AttributeType records.)

PARAMETERS

Param 1: data_type -- (string) the string that you wish to check.

RETURN VALUE / EXCEPTIONS

This method returns the integer 1 if the given string IS a valid data-type for AttributeType records.

If it is not a valid data-type, a TypeError exception will be raised.

Arguments

Name Type Description
skey string

data_type string

Return

The checkAttributeDataType method returns an integer.