I have UI Control classes that have a Data
property, can I restrict the Data class property to be one of Filter’s child classes: FilterRange, FilterSet, FilterValue
? So Data must be a class that has base class Filter.
UIFilterControl
|-- UIControlRangeSlide
| * Data: FilterRange
|-- UIControlSearchSelector
| * Data: FilterSet
Filter and it’s child classes:
Filter
|- FilterRange
|- FilterSet
|- FilterValue
|- ...