org.apache.ws.jaxme.generator
Interface SchemaReader

All Known Implementing Classes:
SchemaReaderImpl

public interface SchemaReader

A SchemaReader is responsible for reading a schema definition.

Author:
Jochen Wiedmann

Method Summary
 void addSGFactoryChain(java.lang.Class pClass)
          Adds an instance of SGFactoryChain to the SGFactory.
 Generator getGenerator()
          Returns the Generator controlling the SchemaReader.
 SGFactory getSGFactory()
          Returns the SGFactory.
 SchemaSG parse(org.xml.sax.InputSource pSource)
          Called for parsing a schema definition from the given Reader.
 void setGenerator(Generator pGenerator)
          Sets the Generator controlling the SchemaReader.
 

Method Detail

getGenerator

public Generator getGenerator()

Returns the Generator controlling the SchemaReader.


setGenerator

public void setGenerator(Generator pGenerator)

Sets the Generator controlling the SchemaReader.


addSGFactoryChain

public void addSGFactoryChain(java.lang.Class pClass)

Adds an instance of SGFactoryChain to the SGFactory.


getSGFactory

public SGFactory getSGFactory()
                       throws org.xml.sax.SAXException

Returns the SGFactory.

Throws:
org.xml.sax.SAXException

parse

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

Called for parsing a schema definition from the given Reader.

Parameters:
pSource - A SAX Input Source, with the system ID set, if possible
Throws:
java.lang.Exception