org.openexi.scomp
Class EXISchemaFactory

java.lang.Object
  extended by EXISchemaStruct
      extended by org.openexi.scomp.EXISchemaFactory

public class EXISchemaFactory
extends EXISchemaStruct

EXISchemaFactory compiles XML Schema into an EXISchema instance.


Constructor Summary
EXISchemaFactory()
           
 
Method Summary
 EXISchema compile(org.xml.sax.InputSource inputSource)
          Compile an XML Schema Document into an EXISchema.
 void setCompilerErrorHandler(EXISchemaFactoryErrorHandler errorHandler)
          Set an error handler to report any errors encountered during schema compilation.
 void setEntityResolver(EntityResolverEx entityResolver)
          Set an entity resolver for use to resolve entities and schema documents.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EXISchemaFactory

public EXISchemaFactory()
Method Detail

setCompilerErrorHandler

public void setCompilerErrorHandler(EXISchemaFactoryErrorHandler errorHandler)
Set an error handler to report any errors encountered during schema compilation.

Parameters:
errorHandler - Error handler

setEntityResolver

public void setEntityResolver(EntityResolverEx entityResolver)
Set an entity resolver for use to resolve entities and schema documents.

Parameters:
entityResolverEx - extended SAX entity resolver

compile

public final EXISchema compile(org.xml.sax.InputSource inputSource)
                        throws java.io.IOException,
                               EXISchemaFactoryException
Compile an XML Schema Document into an EXISchema.

Parameters:
is - XML Schema Document stream from an InputSource
Returns:
an EXISchema instance
Throws:
java.io.IOException
EXISchemaFactoryException