org.ujac.print
Class XmlSchemaGenerator

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

public class XmlSchemaGenerator
extends Object

Name: XmlSchemaGenerator
Description: Provides command line access to the static method generateXmlSchema at class DocumentTagFactory .

Author:
lauerc

Constructor Summary
XmlSchemaGenerator(DocumentTagFactory tagFactory)
          Constructs a XmlSchemaGenerator instance with specific attributes.
 
Method Summary
protected static String attributeTypeToSchemaType(int attributeType)
          Gets the schema type name for the given type ID.
 void generateXmlSchema(Writer out)
          Generates the XML schema 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

XmlSchemaGenerator

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

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

generateXmlSchema

public void generateXmlSchema(Writer out)
                       throws IOException
Generates the XML schema 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.

attributeTypeToSchemaType

protected static String attributeTypeToSchemaType(int attributeType)
Gets the schema 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.