I'd like to override the default form for the "boolean" data type in Rules (D7), and I've gotten as far as locating the interface RulesDataDirectInputFormInterface and the implementation RulesDataUIBoolean.
I only want to override the form when the data is used in a specific condition I'm writing, not for all places where booleans are used.
(To make it a bit more clear: In a condition I'm writing I'm allowing comparison between a long string and a list of words. I'd like to have a boolean parameter that allows administrators to set whether the comparison should be case-sensitive or not – but I don't really like the checkbox saying "value" that the boolean data type provides by default.)
Is there a way to set the UI class used for my action parameter, or will I have to do a form alter hook?

Comments
form_alter
No, there is no way to alter the UI-class per parameter, you can only specify it per data-type. Still you can alter the form of your action using the form_alter() callback. Anyway, I agree that the default UI for booleans isn't that nice, I think we should try to generally improve it.
Thanks!
Good answer! Thanks for quick feedback.
//Johan Falk