org.netbeans.api.mdr/1 1.4.22

org.netbeans.api.mdr
Class DTDProducer

java.lang.Object
  extended by org.netbeans.api.mdr.DTDProducer

public abstract class DTDProducer
extends Object

DTD generation utility. Provides a way to generate DTDs for a given metamodel. Use getDefault() method to get the default instance.


Constructor Summary
DTDProducer()
           
 
Method Summary
abstract  void generate(OutputStream stream, javax.jmi.reflect.RefPackage extent)
          Generates a DTD for a given extent into a provided output stream.
static DTDProducer getDefault()
          Returns a default DTDProducer instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTDProducer

public DTDProducer()
Method Detail

generate

public abstract void generate(OutputStream stream,
                              javax.jmi.reflect.RefPackage extent)
Generates a DTD for a given extent into a provided output stream.

Parameters:
stream - Output stream to generate the DTD into.
extent - Extent that the DTD should be generated from.

getDefault

public static DTDProducer getDefault()
Returns a default DTDProducer instance.

Returns:
Default DTD producer.

org.netbeans.api.mdr/1 1.4.22

Built on July 11 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.