de.ispsoft.jaxme.generator.dtd
Class DTDSchemaReader

java.lang.Object
  extended byde.ispsoft.jaxme.generator.ConfigurableImpl
      extended byde.ispsoft.jaxme.generator.SchemaReaderImpl
          extended byde.ispsoft.jaxme.generator.dtd.DTDSchemaReader
All Implemented Interfaces:
Configurable, SchemaReader

public class DTDSchemaReader
extends SchemaReaderImpl

A SchemaReader reading a DTD (Document Type Declaration).

Version:
$Id: DTDSchemaReader.java,v 1.4 2003/04/24 20:09:36 joe Exp $
Author:
Jochen Wiedmann

Constructor Summary
DTDSchemaReader()
          Constructor for DTDSchemaReader.
 
Method Summary
protected  SchemaComplexElement createSchema(Schema pSchema, DTDElement pDtdElement, java.util.List pStack)
           
protected  void createSchema(Schema pSchema, java.util.List pDeclarations)
           
protected  void getInfo(SchemaElement pElement, DTDObject pDtdElement)
           
 java.lang.String getTemporaryElement()
          Returns the name of the RootNodeReaders invisible element node.
 Schema parse(org.xml.sax.InputSource pSource)
          Reads and parses a DTD from the given Reader pReader.
protected  void removeEmptyElements(java.util.List pDeclarations)
          Creates the Schema which has been read by the DTDSchemaHandler.
 void setTemporaryElement(java.lang.String pTemporaryElement)
          Sets the name of the RootNodeReaders invisible element node.
 
Methods inherited from class de.ispsoft.jaxme.generator.SchemaReaderImpl
getGenerator, parse, setGenerator
 
Methods inherited from class de.ispsoft.jaxme.generator.ConfigurableImpl
getOption, getOptions, getOptionValue, setOption
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.ispsoft.jaxme.generator.Configurable
getOption, getOptions, getOptionValue, setOption
 

Constructor Detail

DTDSchemaReader

public DTDSchemaReader()
Constructor for DTDSchemaReader.

Method Detail

removeEmptyElements

protected void removeEmptyElements(java.util.List pDeclarations)

Creates the Schema which has been read by the DTDSchemaHandler.


getInfo

protected void getInfo(SchemaElement pElement,
                       DTDObject pDtdElement)

createSchema

protected SchemaComplexElement createSchema(Schema pSchema,
                                            DTDElement pDtdElement,
                                            java.util.List pStack)
                                     throws SchemaException
Throws:
SchemaException

createSchema

protected void createSchema(Schema pSchema,
                            java.util.List pDeclarations)
                     throws SchemaException
Throws:
SchemaException

parse

public Schema parse(org.xml.sax.InputSource pSource)
             throws java.lang.Exception

Reads and parses a DTD from the given Reader pReader.

Specified by:
parse in interface SchemaReader
Specified by:
parse in class SchemaReaderImpl
Throws:
java.lang.Exception

setTemporaryElement

public void setTemporaryElement(java.lang.String pTemporaryElement)

Sets the name of the RootNodeReaders invisible element node. Must be different from any other element name.


getTemporaryElement

public java.lang.String getTemporaryElement()

Returns the name of the RootNodeReaders invisible element node. Must be different from any other element name.