jasonvan / prexel

1 stars 2 forks source link

XMI - Fragment Aggregator #16

Open jasonvan opened 6 years ago

jasonvan commented 6 years ago

Code needs to be written to aggregate all XMI fragments into one large XMI file.

jasonvan commented 6 years ago

So this might be a little complicated, but some thoughts on this. We need to loop over all the files in the project to determine what pretty-print strings exists. We do this so we can create an aggregated XMI document.

Possible Implementation As we loop over the files we could hash any pretty-printed strings we come across using the hashing function inside of the utils class. We could then use this hash to search for the easy-entry string inside of the .prexel file where all easy-entry strings used on the project are kept. With an easy entry string we easily recreate the XMI document.

Drawback to this approach If the project is copied and .prexel file isn't copied, there would be no way to generate the aggregated XMI document