org.apache.ws.jaxme.generator.sg.impl
Class JAXBSchemaReader

java.lang.Object
  extended by org.apache.ws.jaxme.generator.impl.SchemaReaderImpl
      extended by org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaReader
All Implemented Interfaces:
SchemaReader
Direct Known Subclasses:
JaxMeSchemaReader

public class JAXBSchemaReader
extends SchemaReaderImpl

The default, JAXB compliant, schema reader.


Constructor Summary
JAXBSchemaReader()
           
 
Method Summary
 void addSGFactoryChain(java.lang.Class pChainClass)
          Adds an instance of SGFactoryChain to the SGFactory.
 SGFactory getSGFactory()
          Returns the SGFactory.
 boolean isSupportingExtensions()
          Returns whether vendor extensions are being supported.
protected  SGFactoryChain newSGFactoryChain(Generator pGenerator)
           
 SchemaSG parse(org.xml.sax.InputSource pSource)
          Called for parsing a schema definition from the given Reader.
protected  void reset()
          Resets the schema readers internal state, allowing to parse multiple schemas with a single instance.
 void setSupportingExtensions(boolean pSupportingExtensions)
          Sets whether vendor extensions are being supported.
 
Methods inherited from class org.apache.ws.jaxme.generator.impl.SchemaReaderImpl
getGenerator, setGenerator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBSchemaReader

public JAXBSchemaReader()
Method Detail

isSupportingExtensions

public boolean isSupportingExtensions()
Returns whether vendor extensions are being supported.


setSupportingExtensions

public void setSupportingExtensions(boolean pSupportingExtensions)
Sets whether vendor extensions are being supported.


addSGFactoryChain

public void addSGFactoryChain(java.lang.Class pChainClass)
Description copied from interface: SchemaReader

Adds an instance of SGFactoryChain to the SGFactory.


newSGFactoryChain

protected SGFactoryChain newSGFactoryChain(Generator pGenerator)

getSGFactory

public SGFactory getSGFactory()
                       throws org.xml.sax.SAXException
Description copied from interface: SchemaReader

Returns the SGFactory.

Throws:
org.xml.sax.SAXException

reset

protected void reset()
Resets the schema readers internal state, allowing to parse multiple schemas with a single instance.


parse

public SchemaSG parse(org.xml.sax.InputSource pSource)
               throws java.lang.Exception
Description copied from interface: SchemaReader

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