de.ispsoft.jaxme.generator
Interface SchemaReader

All Superinterfaces:
Configurable
All Known Implementing Classes:
SchemaReaderImpl

public interface SchemaReader
extends Configurable

A SchemaReader is responsible for reading a schema definition.

Author:
Jochen Wiedmann

Method Summary
 Generator getGenerator()
          Returns the Generator that maintains this SchemaReader, if any, or null.
 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 interface de.ispsoft.jaxme.generator.Configurable
getOption, getOptions, getOptionValue, setOption
 

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.

Throws:
java.lang.Exception

parse

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

Called for parsing a schema definition from the given InputSource.

Throws:
java.lang.Exception

setGenerator

public void setGenerator(Generator pGenerator)

Sets the Generator that maintains this SchemaReader, if any.


getGenerator

public Generator getGenerator()

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