'Given value for DataToolParameter, is this HDA "selected".'

def selected(self, hda):

    value = self.value
    if (value and str(value[0]).isdigit()):
        return (hda.id in map(int, value))
    else:
        return (value and (hda in value))
