RE: XMI reader
"Vries, Michiel de" <[email protected]> Thu, 12 Aug 2004 14:48:14 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.devel |
|---|---|
| Message-ID | <D913221A882FD31198D90008C75D69090B53D9A0@cwnl-ams-pri01.nl.compuware.com> |
Hi Daniel, Using a system property would be OK I think. Maybe a small addition to the API is more elegant, but that doesn't really matter to us. Is it possible for you to create a version based on 0.98, which supports that? Another - less important - suggestion is to make the DebugException that is thrown when an element is not recognized a checked exception i.s.o. a RuntimeException. Michiel. -----Original Message----- From: Daniel Prusa [mailto:[email protected]] Sent: Wednesday, August 11, 2004 6:47 PM To: [email protected] Subject: Re: [mdr-dev] XMI reader Hi Michiel, to ignore unknown elements will require to make some modificatins in XMI reader. We can use some system property to determine if such elements should be ignored or not (the default behaviour of the reader will remain the same). Is this solution acceptable for you ? Daniel >Hi all, > >As you might know Compuware OptimalJ uses a version of the MDR XMI reader >(0.98 at the moment). We use it for importing XMI files into our MOF >repository. > >I have one question about it: currently when we import an Element that is >not recognized (possibly because our repository does not support that >element) a DebugException is thrown by the resolveElement() method in >XmiContext.java. > >We would like to have a little bit more control over this process. Ideally >we would like to be able to ignore elements like that and continue >processing the remainder of the file. > >Do you know how this can be accomplished? > >Thanks for your help. > >Michiel. >--- >Compuware OptimalJ - www.optimalj.com > > > > -- The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.