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

Class JAXBSchemaReader

Implemented Interfaces:
SchemaReader
Known Direct Subclasses:
JaxMeSchemaReader

public class JAXBSchemaReader
extends SchemaReaderImpl

The default, JAXB compliant, schema reader.

Method Summary

void
addSGFactoryChain(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(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

Method Details

addSGFactoryChain

public void addSGFactoryChain(Class pChainClass)
Specified by:
addSGFactoryChain in interface SchemaReader

getSGFactory

public SGFactory getSGFactory()
            throws SAXException
Returns the SGFactory.
Specified by:
getSGFactory in interface SchemaReader

isSupportingExtensions

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

newSGFactoryChain

protected SGFactoryChain newSGFactoryChain(Generator pGenerator)

parse

public SchemaSG parse(InputSource pSource)
            throws Exception
Called for parsing a schema definition from the given Reader.
Specified by:
parse in interface SchemaReader
Parameters:
pSource - A SAX Input Source, with the system ID set, if possible

reset

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

setSupportingExtensions

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