de.ispsoft.jaxme.generator
Class SchemaReaderImpl

java.lang.Object
  extended byde.ispsoft.jaxme.generator.ConfigurableImpl
      extended byde.ispsoft.jaxme.generator.SchemaReaderImpl
All Implemented Interfaces:
Configurable, SchemaReader
Direct Known Subclasses:
DTDSchemaReader, XsdSchemaReader

public abstract class SchemaReaderImpl
extends ConfigurableImpl
implements SchemaReader

An abstract default implementation for SchemaReaders.

Author:
Jochen Wiedmann

Constructor Summary
SchemaReaderImpl()
          Creates a new SchemaReaderImpl instance.
 
Method Summary
 Generator getGenerator()
          Returns the Generator that maintains this SchemaReader, if any, or null.
abstract  Schema parse(org.xml.sax.InputSource pSource)
          Called for parsing a schema definition from the given InputSource.
 Schema parse(java.lang.String pFile)
          Called for parsing a schema definition stored in the given file or URL.
 void setGenerator(Generator pGenerator)
          Sets the Generator that maintains this SchemaReader, if any.
 
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

SchemaReaderImpl

public SchemaReaderImpl()
Creates a new SchemaReaderImpl instance.

Method Detail

parse

public Schema parse(java.lang.String pFile)
             throws java.lang.Exception

Called for parsing a schema definition stored in the given file or URL. This is done by creating a FileReader and calling parse(java.io.Reader).

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

parse

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

Called for parsing a schema definition from the given InputSource.

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

setGenerator

public void setGenerator(Generator pGenerator)

Sets the Generator that maintains this SchemaReader, if any.

Specified by:
setGenerator in interface SchemaReader

getGenerator

public Generator getGenerator()

Returns the Generator that maintains this SchemaReader, if any, or null.

Specified by:
getGenerator in interface SchemaReader