Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] [MOXy] compareSchemaOrder()


I found some code inside the EclipseLink Workbench that sorts XML
descriptors in the order that the schema defines.  The code is in:

This functionality looks really useful, and I would like to be able to call
it instead of trying to duplicate it.  However, I'm having a hard time
trying to figure out if this API can be used outside of the Workbench.  What
I'm finding is that even though the code is well organized, there are not a
lot of comments, and I'm not that familiar with the domain.  So I'm having
some difficulty following it.  My questions are:

1.  Do you think it would be possible to instantiate the domain objects that
this code needs (such as MWXmlField, MWXpathStep, and maybe MWXmlDescriptor)
in order to use the code inside orderedMappingComparator()?  

2.  What does this business logic do?  Can you explain the general flow? 
Since I need the same functionality, it would help to be able to understand
how your system works.  

I know I'm deep in the guts of the Workbench here, but this code looks
really nice.  You have obviously thought about this problem a lot more than
I have, and it works, so it would be great if I can make use of it.  Any
other advice that you have would be greatly appreciated.

View this message in context:
Sent from the EclipseLink - Users mailing list archive at

Back to the top