Knut, Currently, the only way to do the customization your are talking about it to build custom model support for EMF (see NodePointer, NodePointerFactory, NodeIterator). It is not a trivial undertaking, but...
What would help with problems like this is integration with Clazz, but at this point there does not seem to be enough support for a formal release of Clazz, which would be a pre-requisite for such integration. - Dmitri --- "Wannheden, Knut" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using JXPath to navigate an EMF model (http://eclipse.org/emf/), > which > btw is a great MOF style modelling framework. Classes in the EMF > model work > very nicely with JXPath as they comply to the JavaBeans standard. > But EMF > also provides its own introspection mechanisms which can be used to > access > additional metadata about classes and properties. These also tell > whether > an association is an aggregation (containment) association or not, > which > could be useful in JXPath navigation (i.e. parent/child > relationship). > > I'd like to provide a custom JXPathBeanInfo for the EMF model > classes. This > would let me tell JXPath only to navigate the EMF properties of the > model > classes. The documentation and the JXPathBeanInfo class describes > how to do > this, but only for one class at the time. I'd like to write one > class which > works for all model classes (much like the standard > JXPathBasicBeanInfo > class), as the implementation would be the same for all of them. > > For this I'd have to customize the way JXPathIntrospector works, no? > But > unfortunately it looks like this customization wasn't anticipated (as > all > its member methods are static). Is there another way to achieve > this? > > Note that the EMF model classes can also reference regular Java > classes > outside the model in which case I'd like to revert to JXPath's > default > behavior, i.e. use the standard JXPathBasicBeanInfo. > > TIA, > > -- > knut > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
