Package com.sun.msv.verifier.jarv
Class FactoryImpl
- java.lang.Object
-
- org.iso_relax.verifier.VerifierFactory
-
- com.sun.msv.verifier.jarv.FactoryImpl
-
- Direct Known Subclasses:
DTDFactoryImpl,RELAXCoreFactoryImpl,RELAXNGFactoryImpl,TheFactoryImpl,TREXFactoryImpl,XSFactoryImpl
public abstract class FactoryImpl extends org.iso_relax.verifier.VerifierFactorybase implementation of RELAXFactoryImpl and TREXFactoryImpl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classFactoryImpl.ThrowControllerprivate static classFactoryImpl.WrapperExceptionwrapper exception so that we can throw it from the GrammarReaderController.
-
Field Summary
Fields Modifier and Type Field Description protected javax.xml.parsers.SAXParserFactoryfactoryprivate org.xml.sax.EntityResolverresolverTo be used to resolve files included/imported by the schema.private booleanusePanicMode
-
Constructor Summary
Constructors Modifier Constructor Description protectedFactoryImpl()protectedFactoryImpl(javax.xml.parsers.SAXParserFactory factory)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.iso_relax.verifier.SchemacompileSchema(org.xml.sax.InputSource source)(package private) static IVerifiercreateVerifier(Grammar g)gets the VGM by sniffing its type.org.xml.sax.EntityResolvergetEntityResolver()booleanisFeature(java.lang.String feature)protected abstract Grammarparse(org.xml.sax.InputSource source, GrammarReaderController controller)parses a Grammar from the specified source.voidsetEntityResolver(org.xml.sax.EntityResolver _resolver)voidsetFeature(java.lang.String feature, boolean v)
-
-
-
Method Detail
-
setFeature
public void setFeature(java.lang.String feature, boolean v) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException- Overrides:
setFeaturein classorg.iso_relax.verifier.VerifierFactory- Throws:
org.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedException
-
isFeature
public boolean isFeature(java.lang.String feature) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException- Overrides:
isFeaturein classorg.iso_relax.verifier.VerifierFactory- Throws:
org.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedException
-
setEntityResolver
public void setEntityResolver(org.xml.sax.EntityResolver _resolver)
- Overrides:
setEntityResolverin classorg.iso_relax.verifier.VerifierFactory
-
getEntityResolver
public org.xml.sax.EntityResolver getEntityResolver()
- Overrides:
getEntityResolverin classorg.iso_relax.verifier.VerifierFactory
-
parse
protected abstract Grammar parse(org.xml.sax.InputSource source, GrammarReaderController controller) throws org.xml.sax.SAXException, org.iso_relax.verifier.VerifierConfigurationException
parses a Grammar from the specified source. return null if an error happens.- Throws:
org.xml.sax.SAXExceptionorg.iso_relax.verifier.VerifierConfigurationException
-
compileSchema
public org.iso_relax.verifier.Schema compileSchema(org.xml.sax.InputSource source) throws org.iso_relax.verifier.VerifierConfigurationException, org.xml.sax.SAXException- Specified by:
compileSchemain classorg.iso_relax.verifier.VerifierFactory- Throws:
org.iso_relax.verifier.VerifierConfigurationExceptionorg.xml.sax.SAXException
-
-