fmeobjects.FMEFeature.getAttributeNullMissingAndType
- FMEFeature.getAttributeNullMissingAndType(attributeName)
This method is deprecated as of FME 2021.0. Please use
isAttributeNull
,isAttributeMissing
, andgetAttributeType
instead.This method returns a tuple of a boolean indicating if the attribute is null, a boolean indicating if the attribute is missing, and an integer representing the type of the attribute. The first boolean is
True
if attributeName maps to a null attribute value on the feature. Otherwise it isFalse
. The second boolean isTrue
if attributeName maps to no value on the feature. Otherwise it isFalse
. If the attribute is absent,FME_ATTR_UNDEFINED
is returned for the type, otherwise the attribute type is returned.- Parameters:
attributeName (str) – The name of the attribute.
- Return type:
- Returns:
A tuple of 2 boolean values and an integer. The first boolean indicating whether or not the value of the attribute is null, the second boolean indicating whether or not the attribute is missing, and the integer representing the attribute type. Attribute type int values are represented by the constants
FME_ATTR_UNDEFINED
,FME_ATTR_BOOLEAN
,FME_ATTR_INT8
,FME_ATTR_UINT8
,FME_ATTR_INT16
,FME_ATTR_UINT16
,FME_ATTR_INT32
,FME_ATTR_UINT32
,FME_ATTR_REAL32
,FME_ATTR_REAL64
,FME_ATTR_REAL80
,FME_ATTR_STRING
,FME_ATTR_ENCODED_STRING
,FME_ATTR_INT64
, orFME_ATTR_UINT64
.