org.apache.ws.jaxme.generator.impl

Class Inliner

Implemented Interfaces:
SchemaTransformer

public class Inliner
extends java.lang.Object
implements SchemaTransformer

Performs the modifications on an XML schema file, as specified by an external binding file. This is based on a suggestion from Ortwin Glueck, see http://wiki.apache.org/ws/JaxMe/ExternalSchemaBindings.

Constructor Summary

Inliner(Document[] pBindings)
Creates a new instance with the given bindings.

Method Summary

InputSource
getTransformedInputSource()
Returns the new input source.
XMLReader
getTransformedXMLReader()
Returns the new XML reader.
void
parse(InputSource pSource, XMLReader pReader)
Reads the given input source.

Constructor Details

Inliner

public Inliner(Document[] pBindings)
Creates a new instance with the given bindings.

Method Details

getTransformedInputSource

public InputSource getTransformedInputSource()
Specified by:
getTransformedInputSource in interface SchemaTransformer

getTransformedXMLReader

public XMLReader getTransformedXMLReader()
Specified by:
getTransformedXMLReader in interface SchemaTransformer

parse

public void parse(InputSource pSource,
                  XMLReader pReader)
            throws ParserConfigurationException,
                   SAXException,
                   IOException
Reads the given input source.
Specified by:
parse in interface SchemaTransformer