com.sun.msv.verifier.jarv
Class FactoryImpl

java.lang.Object
  extended by org.iso_relax.verifier.VerifierFactory
      extended by com.sun.msv.verifier.jarv.FactoryImpl
Direct Known Subclasses:
DTDFactoryImpl, RELAXCoreFactoryImpl, RELAXNGFactoryImpl, TheFactoryImpl, TREXFactoryImpl, XSFactoryImpl

public abstract class FactoryImpl
extends VerifierFactory

base implementation of RELAXFactoryImpl and TREXFactoryImpl

Author:
Kohsuke KAWAGUCHI

Field Summary
protected  SAXParserFactory factory
           
 
Constructor Summary
protected FactoryImpl()
           
protected FactoryImpl(SAXParserFactory factory)
           
 
Method Summary
 Schema compileSchema(InputSource source)
           
 EntityResolver getEntityResolver()
           
 boolean isFeature(String feature)
           
protected abstract  Grammar parse(InputSource source, GrammarReaderController controller)
          parses a Grammar from the specified source.
 void setEntityResolver(EntityResolver _resolver)
           
 void setFeature(String feature, boolean v)
           
 
Methods inherited from class org.iso_relax.verifier.VerifierFactory
compileSchema, compileSchema, compileSchema, compileSchema, getProperty, newInstance, newInstance, newInstance, newVerifier, newVerifier, newVerifier, newVerifier, newVerifier, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

protected final SAXParserFactory factory
Constructor Detail

FactoryImpl

protected FactoryImpl(SAXParserFactory factory)

FactoryImpl

protected FactoryImpl()
Method Detail

setFeature

public void setFeature(String feature,
                       boolean v)
                throws SAXNotRecognizedException,
                       SAXNotSupportedException
Overrides:
setFeature in class VerifierFactory
Throws:
SAXNotRecognizedException
SAXNotSupportedException

isFeature

public boolean isFeature(String feature)
                  throws SAXNotRecognizedException,
                         SAXNotSupportedException
Overrides:
isFeature in class VerifierFactory
Throws:
SAXNotRecognizedException
SAXNotSupportedException

setEntityResolver

public void setEntityResolver(EntityResolver _resolver)
Overrides:
setEntityResolver in class VerifierFactory

getEntityResolver

public EntityResolver getEntityResolver()
Overrides:
getEntityResolver in class VerifierFactory

parse

protected abstract Grammar parse(InputSource source,
                                 GrammarReaderController controller)
                          throws SAXException,
                                 VerifierConfigurationException
parses a Grammar from the specified source. return null if an error happens.

Throws:
SAXException
VerifierConfigurationException

compileSchema

public Schema compileSchema(InputSource source)
                     throws VerifierConfigurationException,
                            SAXException
Specified by:
compileSchema in class VerifierFactory
Throws:
VerifierConfigurationException
SAXException


MSV