Re: PROPOSAL (round 3): Extensions to MDR XMI API

Petr Kuzel <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.mdr.devel
Message-ID <[email protected]>
On Monday 05 August 2002 08:08, Holger Krug wrote:
> * to provide a nice and clean standard implementation which gives
>   exactly what the standard requires and nothing more (already exists)

I looked over your discussion and I think that above is the point.
The standard interface already exists. So I would introduce a factory
class instantiating readers/writers using additional hints i.e.:

class XmiReaderFactory {  
  XmiReader create(ContentHandler, XMIReferenceResolver);
  XmiReader create(XMIReferenceResolver);
  // ...
}

class XmiWriterFactory {
  XmiWriter create(ContentHandler, XMIReferenceProvider);
  XmiWriter create(XMIRefernceProvider);
  // ...
}

Unfortunately methods taking ContentHandler may produce
JMI interface implementations with modified semantics 
(I not sure if it is allowed). If it is not allowed then
you can drop it (pipelining nor pretty printing is not 
hard requirement AFAIK).

Anyway next round will be probably necessary :-)

  Cc.
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.