Hi, While the required attribute is not directly available through the API, the ObjectClassDefinition.getAttributeDefinitions(int) method takes an integer allowing you to select the definitions depending on requirement:
ALL -- return all definitions REQUIRED -- return definitions where required is true OPTIONAL -- return definitions where required is false Does this help ? Or this is the "jump through hoops" you are referring to ? Regards Felix Am 24.10.2012 um 15:46 schrieb Jan Willem Janssen: > Hi, > > Why is the required property on AttributeDefinition not exposed on its > interface? When trying to build a generic configuration editor for > MetaType'd configurations, I've to jump through hoops in order to > determine whether or not an attribute is required... > > - -- > Met vriendelijke groeten | Kind regards > > Jan Willem Janssen | Software Architect > +31 631 765 814 > > /My world is:/ > > Luminis Technologies B.V. > IJsselburcht 3 > 6825 BS Arnhem > +31 88 586 46 30 > > http://www.luminis-technologies.com > http://www.luminis.eu > > KvK (CoC) 09 16 28 93 > BTW (VAT) NL8169.78.566.B.01 _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
