Re: writing collection of refobjects through xmiwriter
Martin Matula <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Brian, Brian Smith wrote: > The getDocumentURI() returns the URI to the _document_, not the XML > element representing the object. Using the getDocumentURI(), the > XMIWriter can determine if two objects are in the same document. The > getLocation() method returns the path _inside_ the document. For > example, if you have http://www.foo.com/mof.xml#String then > getDocumentURI() will return "http://www.foo.com/mof.xml" and > getLocation() would return "#String". If you wanted to insist that the > URI's are always in the form <document-uri>#<xmi.id> then you wouldn't > need the getLocation() method. But, if you want more flexibility (e.g. > the ability to do full XPointers or some other format), then you would > need the getLocation() method to do that. do you think that this is important? i would rather have only two methods - getDocumentURI and getXMIID and write hrefs in form <documentURI>#<xmi.id>. I think this format is a standard format for hrefs in XMI. Do you think it is too limiting? Martin