fr.tireme.schemadoc.xs2dtd.SDDTD
Class DTDProcessor

java.lang.Object
  extended by fr.tireme.schemadoc.xs2dtd.SDDTD.DTDProcessor

public class DTDProcessor
extends java.lang.Object

Builds the DTDHandler using DTDProcessor responsible for the creation of the XML form.

Author:
florent

Field Summary
static int schemaObjectID
           
 
Constructor Summary
DTDProcessor(DTDHandler dtdHandler, boolean normalizeNames_)
          Constructor for the DTDHandler object
 
Method Summary
 void addImport(SDImport import_)
           
 void addNsDefs(SDSchema schema_)
          Adds nsDefs to the root
 void cleanDTDHandler()
          clean the DTDHandler.
 void reOrder()
          Re-ordering the XML DTD handler according to DTD PE order constraints
 void traversalBuild(XSDSchemaHandler schemaHandler_, java.lang.String nextSchemaId_)
          Builds the DTDHandler of a SDConcreteComponent using XSDSchemaHandler.
 void updateNamespaces(SDSchema schema_)
          Updates the stored namespaces
 void verticalBuild(XSDSchemaHandler schemaHandler_)
          Builds the DTDHandler of a SDConcreteComponent using XSDSchemaHandler.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

schemaObjectID

public static int schemaObjectID
Constructor Detail

DTDProcessor

public DTDProcessor(DTDHandler dtdHandler,
                    boolean normalizeNames_)
Constructor for the DTDHandler object

Parameters:
dtdHandler - - dtdHandler
normalizeNames_ - - true if names
Method Detail

traversalBuild

public void traversalBuild(XSDSchemaHandler schemaHandler_,
                           java.lang.String nextSchemaId_)
                    throws Xs2dtdException
Builds the DTDHandler of a SDConcreteComponent using XSDSchemaHandler.

Parameters:
schemaHandler_ - - schema handler
nextSchemaId_ - - next handler id if any
Throws:
Xs2dtdException - -

verticalBuild

public void verticalBuild(XSDSchemaHandler schemaHandler_)
                   throws Xs2dtdException
Builds the DTDHandler of a SDConcreteComponent using XSDSchemaHandler.

Parameters:
schemaHandler_ - - schema handler
Throws:
Xs2dtdException - -

addImport

public void addImport(SDImport import_)
               throws Xs2dtdException
Parameters:
import_ -
Throws:
Xs2dtdException

addNsDefs

public void addNsDefs(SDSchema schema_)
               throws Xs2dtdException
Adds nsDefs to the root

Parameters:
schema_ - - schema
Throws:
Xs2dtdException

updateNamespaces

public void updateNamespaces(SDSchema schema_)
Updates the stored namespaces

Parameters:
schema_ -

cleanDTDHandler

public void cleanDTDHandler()
                     throws Xs2dtdException
clean the DTDHandler. Remove empty comments and unused created 'formixed' group declarations

Throws:
Xs2dtdException

reOrder

public void reOrder()
             throws Xs2dtdException
Re-ordering the XML DTD handler according to DTD PE order constraints

Throws:
Xs2dtdException