Filter for device class instead id

Hello
we would like to know if there is a way to filter/unfilter USB device based on CLASS (for example H.I.D. like keyboard and mouse) instead of DEVICE (vendorid:deviceid).
Thanks for any reply.

#2

No, only by vendor id /product id.