def METHOD_NAME(self, data):
    """ Returns a list or dictionary of values for this setting. """
    enumstr = data.attrib.get('enumValues') or data.attrib.get('values')
    if not enumstr:
        return None
    if ':' in enumstr:
        d = {}
        for kv in enumstr.split('|'):
            try:
                k, v = kv.split(':')
                d[self._cast(k)] = v
            except ValueError:
                d[self._cast(kv)] = kv
        return d
    return enumstr.split('|')