org.ujac.print
Class DtdGenerator

java.lang.Object
  extended by org.ujac.print.DtdGenerator

public class DtdGenerator
extends Object

Title: DtdGenerator
Description: Provides command line access to the static method generateDtd. at class DocumentTagFactory .

Author:
lauerc

Constructor Summary
DtdGenerator(DocumentTagFactory tagFactory)
          Constructs a DtdGenerator instance with specific attributes.
 
Method Summary
protected static String attributeTypeToDtdType(int attributeType)
          Gets the DTD type name for the given type ID.
 void generateDtd(Writer out)
          Generates the DTD according to the meta informations, provided by the registered items.
static void main(String[] args)
          The main method for command line access.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DtdGenerator

public DtdGenerator(DocumentTagFactory tagFactory)
Constructs a DtdGenerator instance with specific attributes.

Parameters:
tagFactory - The tag factory to use.
Method Detail

generateDtd

public void generateDtd(Writer out)
                 throws IOException
Generates the DTD according to the meta informations, provided by the registered items.

Parameters:
out - The writer, needed for output.
Throws:
IOException - In case the writing of the DTD has been failed.

attributeTypeToDtdType

protected static String attributeTypeToDtdType(int attributeType)
Gets the DTD type name for the given type ID.

Parameters:
attributeType - The type ID.
Returns:
The according schema type.

main

public static void main(String[] args)
The main method for command line access.

Parameters:
args - The command line attributes.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.