def getName(self, value, defaultName = None):
        '''
        Get the enumerate name of a specified value.
        :param value: the enumerate value
        :param defaultName: returns if the enumerate value is not defined
        :returns: the corresponding enumerate value or *defaultName* if not found
        '''
        for k,v in self._values.items():
            if v == value:
                return k
        return defaultName
Get the enumerate name of a specified value.
        :param value: the enumerate value
        :param defaultName: returns if the enumerate value is not defined
        :returns: the corresponding enumerate value or *defaultName* if not found