PROPOSAL (round 3): Extensions to MDR XMI API

Martin Matula <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.mdr.devel
Message-ID <[email protected]>
Hi,
attached is the source code and javadoc of the reworked XMI API, based 
on comments that I got. I have made the following changes:
1) put all the interfaces into org.netbeans.api.xmi rather than 
org.netbeans.api.mdr
2) removed getObjects() method from XMIWriter (objects are now passed as 
parameters to XMIWriter)
3) added specific methods for setting XMIReferenceResolver/Provider to 
XMIReader/Writer
4) added method for setting content handler for XMIWriter and removed 
ContentHandler parameter from write methods
5) made XMIWriter and XMIReader abstract classes instead of interfaces. 
They now implement the standard JMI interfaces (the default 
implementation is included in these classes)
6) I have renamed HRefResolver to XMIReferenceResolver and its 
functionality is now a little bit different to be able to handle 
circular references between XMI files (for this purpose I've also added 
a new callback method - resolvedReference - to XMIReader)
7) I have removed OutputTarget (write method of XMIWriter now takes both 
OutputStream and URI, they can be set to null)
8) I have not moved the read operation to XMIReaderFactory, neither I 
have removed it. It is because this operations is realy dependent on 
XMIReader implementation as it needs to be able to return the collection 
of outermost elements read from XMI file. IMO this is too implementation 
specific to be implemented outside of XMIReader.
I would like to hear your feedback. Hopefuly this is the last round :).
Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
src.zip (application/x-zip-compressed, 8.8 KB) - not displayed
javadoc.zip (application/x-zip-compressed, 50.2 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.